
jdk的问题,这算正常吗?真是蛋疼。。
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
Re: jdk的问题,这算正常吗?真是蛋疼。。
并且解压后的eclipse打不开
系统ubuntu15.10x64
jdk1.8.0_65 32位
eclipse最新的32位
系统ubuntu15.10x64
jdk1.8.0_65 32位
eclipse最新的32位
代码: 全选
# /home/pan/program/eclipse/eclipse
Eclipse:
GTK+ Version Check
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Eclipse:
An error has occurred. See the log file
-
- 论坛版主
- 帖子: 5371
- 注册时间: 2007-01-14 16:23
Re: jdk的问题,这算正常吗?真是蛋疼。。
不明白你为啥要用sudo su ,su本来就是给普通用户切换到root用的命令,无需sudo 而且,你 sudo su之后,并没有带来root的环境变量啊
而且你为啥要用root用户啊

#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: jdk的问题,这算正常吗?真是蛋疼。。
'sudo su' 的 $PATH 可能不同
在 sudo su 的提示符下检查 $PATH 内容
下面这篇帖子很老了,但还有一定参考价值
http://ubuntuforums.org/showthread.php?t=874346
在 sudo su 的提示符下检查 $PATH 内容
下面这篇帖子很老了,但还有一定参考价值
http://ubuntuforums.org/showthread.php?t=874346
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: jdk的问题,这算正常吗?真是蛋疼。。
ubuntu 用户可能习惯了没有 root 密码。onlylove 写了:不明白你为啥要用sudo su ,su本来就是给普通用户切换到root用的命令,无需sudo 恕删
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
Re: jdk的问题,这算正常吗?真是蛋疼。。
嗯,环境变量跟用户有关联,谢谢两位
现在不知道eclipse为什么不能用,不知道谁遇到过
现在不知道eclipse为什么不能用,不知道谁遇到过
代码: 全选
Eclipse:
GTK+ Version Check
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Eclipse:
An error has occurred. See the log file
/home/pan/.eclipse/org.eclipse.platform_4.5.1_649197129_linux_gtk_x86/configuration/1446515580191.log.
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: jdk的问题,这算正常吗?真是蛋疼。。
把下面指令 複製 貼進終端機 執行An error has occurred. See the log file
/home/pan/.eclipse/org.eclipse.platform_4.5.1_649197129_linux_gtk_x86/configuration/1446515580191.log.
代码: 全选
sudo tail /home/pan/.eclipse/org.eclipse.platform_4.5.1_649197129_linux_gtk_x86/configuration/1446515580191.log
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
Re: jdk的问题,这算正常吗?真是蛋疼。。
代码: 全选
sudo tail /home/pan/.eclipse/org.eclipse.platform_4.5.1_649197129_linux_gtk_x86/configuration/1446515580191.log
代码: 全选
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
-
- 帖子: 24
- 注册时间: 2012-01-04 20:26
Re: jdk的问题,这算正常吗?真是蛋疼。。
看到有一些用软连接引用了一些库
但我系统里好像没这个文件夹。。
代码: 全选
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/Linux/x86_64/
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: jdk的问题,这算正常吗?真是蛋疼。。
當你切換成 rootScreenshot from 2015-11-02 23-56-08.png
java -version
顯示的訊息
跟還沒切換成 root
java -version
顯示的訊息
完全不同
如果你是新手
使用 pan 使用者帳號登入 把 eclipse 安裝在 pan 的家目錄時
不要切換成 root
需要 root 權限時
sudo + 文字指令
gksudo + 圖形指令
切換成 root 或 以 root 登入
反而帶來讓新手 不明白 發生了什麼事
參閱
https://help.ubuntu.com/community/Eclip ... our_system