jboss jdk7.1.1启动不了,有大神能帮忙看一下吗,JDK 1.7 64BIT

Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.
I have Ubuntu 11.10 64-bit and I installed JDK 1.7.0 update 2 x64 via . But currently I have problem with minecraft game. After downloading launcher from
and lauch the game by java -jar /home/zrebec/Downloads/minecraft.jar launcehr is launched normaly, after login the game download the updates but then I got just the black screen with this in terminal:
Setting user: zrebec, -623309
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: /home/zrebec/.minecraft/bin/natives/liblwjgl.so: /home/zrebec/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at org.lwjgl.Sys$1.run(Sys.java:69)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
at org.lwjgl.Sys.loadLibrary(Sys.java:81)
at org.lwjgl.Sys.&clinit&(Sys.java:98)
at org.lwjgl.opengl.Display.&clinit&(Display.java:132)
at net.minecraft.client.Minecraft.a(SourceFile:180)
at net.minecraft.client.Minecraft.run(SourceFile:648)
at java.lang.Thread.run(Thread.java:722)
Please anyone can help me with this? I think that problem will be in architecture becase:
liblwjgl.so: /home/zrebec/.minecraft/bin/natives/liblwjgl.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
Any idea please?
I know, maybe this one is off topic because maybe its not Ubuntu problem maybe but in 64-bit works all perfectly and I think that accepted answer can help to many users and can make better playing games under linux. Really. Thank you very much for any idea.
Instead of launching a script everytime you want to run minecraft, you can also add the libraries to the ldconfig:
sudo su -c "echo [path to java]/lib/amd64(or i386) & /etc/ld.so.conf.d/java.conf"
sudo ldconfig
now just run minecraft by opening it with java in the file manager
(example of line 1: sudo su -c "echo /usr/lib/jvm/oracle-java/lib/amd64 > /etc/ld.so.conf.d/java.conf")
I have the same problem but I installed via , searching the internet I found this script (I'm adapted the script to my system) but basically this is:
#!/bin/bash
export LD_LIBRARY_PATH="/opt/java/jre/lib/amd64"
java minecraft.jar
The script for my system:
#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"
java -jar Minecraft.jar
I hope this will be useful
Found this on a Fedora forum and it worked nicely for me running 12.04 Ubuntu-64bit with OpenJDK7u3
"I just had the same problem, and here is what worked for me:
Click the link to download the newest stable release
Download lwjgl-x.x.x.zip (lwjgl-2.8.3.zip at the time of writing)
Go to your home folder and press ctrl + h to show your hidden files
Go to .minecraft/bin and copy the matching .jar files from the jar folder in the zip that you downloaded into there
Copy the .so files from the native/linux folder in the zip file to .minecraft/bin/natives
Launch Minecraft
Hope that helps! "
If you use this type of Java, , then this is the correct code you need.
#!/bin/bash
export LD_LIBRARY_PATH="/usr/local/java/jre1.7.0_05/lib/amd64"
java -jar /path to your minecraft.jar file
Thank-you JoZ3, I just slightly modified your code.
@JoZ3 Thank you very much. You solved my problem. Trick was to redirect that path. Just a small tut for beginners. Before reading this, I assumed that you all installed JDK 7 like JoZ3 wrote in his post. (Oracle JDK is needed.)
Download minecraft.jar. Place it in some folder on desktop.
Create a text document and paste JoZ3's commands in it. This is the required command and we are creating a shell script.
#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"
java -jar Minecraft.jar
Save it as, for example, fix.sh.
Make sure you run chmod fix.sh with this command. cd to the directory where the file is located and type in the terminal the following commands:
sudo chmod 755 fix.sh
Run fix.sh from terminal by dragging it to the terminal and pressing Enter, or by manual typing its location in terminal and pressing Enter.
Game should work now! It solved my problem.
So... I found the solution :)
I crated this script and its works perfectly :) I remove OpenJDK and after executing this script the game works :)
export LD_LIBRARY_PATH="/usr/lib/jvm/jdk1.7.0_02/jre/lib/amd64"
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
I downloaded the windows exe, let it load, took the minecraft jar out of windows, I found that that works for me(since the one for linux on their site aint)
1,73021227
This worked to me:
#!/bin/bash
export LD_LIBRARY_PATH="/usr/lib/jvm/java-7-oracle/jre/lib/amd64"
java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame
I adapted the directory because I use the JAVA by ORACLE. This solved the mystery of the black screen. (:
Simple fix, download the .jar file off the minecraft website, move it to your desktop, right click, properties, check make file executable and your done.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Ubuntu and Canonical are registered trademarks of Canonical Ltd.
Ask Ubuntu works best with JavaScript enabled文档分类:
在线文档经过高度压缩,下载原文更清晰。
您的浏览器不支持进度条
淘豆网网友近日为您收集整理了关于CentOS5.8部署jboss7.1.1和jdk6.0的文档,希望对您的工作和学习有所帮助。以下是文档介绍:CentOS5.8 部署 jboss7.1.1 和 jdk6.0一、安装准备。1、JDK7.0:jdk-7u1-linux-x64.tar.gz下载地址:hnetwork/java/javase/downloads/index.html2、JBoss7.1.1: jboss-as-7.1.1.Final下载地址:ssas/downloads二、配置环境变量。1、 JAVA 配置环境变量有 2 种方式:01. 修改.bashrc 文件或者.bash_profile 文件,此两文件一般在主文件夹下。在文件中加入:JAVA_HOME=/usr/java/jdk1.7.0_01export JAVA_HOMEPATH=$JAVA_HOME/bin:$PATHexport PATH02.或者修改.profile 文件,推荐此种方式。这样其他程序也可以友好的使用 JDK了[root@hui java]# vi /etc/profile在文件夹中找到 export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC,修改为下面的形式JAVA_HOME=/usr/java/jdk1.7.0_01export JAVA_HOMEPATH=$JAVA_HOME/bin:$PATHexport PATH执行配置文件令其立刻生效[root@hui java]# source /etc/profile之后执行以下命令验证是否安装成功[root@hui java]# java -version如果出现 java version “1.7.0”等字样,说明您的 JDK 已经安装成功了2、Jboss 配置环境变量:[root@hui java]# vi /etc/profile在文档中加入以下环境变量export JBOSS_HOME=/usr/local/JBossexport PATH=$PATH:$JBOSS_HOME/bin使配置文件生效[root@hui java]#source /etc/profile验证是否配置成功[root@hui java]#echo $JBOSS_HOME三、修改配置文件。1、cd/usr/local/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml## ———添加内容—————&interface name=”any”&&any-ipv4-address /&&/interface&##—————————让非本机的客户访问————2、修改管理端口。&socket-binding-group name=&standard-sockets&default-interface=&public&port-offset=&${jboss.socket.binding.port-offset:0}&&&socket-binding name=&management-native&interface=&management& port=&${jboss.management.native.port:9999}&/&&socket-binding name=&management-http& interface=&management&port=&${jboss.management.http.port:9990}&/&&socket-binding name=&management-https& interface=&management&port=&${jboss.management.https.port:9443}&/&&socket-binding name=&ajp& port=&8009&/&&socket-binding name=&http& port=&8081&/&&socket-binding name=&https& port=&8443&/&&socket-binding name=&osgi-http& interface=&management&port=&8090&/&&socket-binding name=&remoting& port=&4447&/&&socket-binding name=&txn-recovery-environment& port=&4712&/&&socket-binding name=&txn-status-manager& port=&4713&/&&outbound-socket-binding name=&mail-smtp&&&remote-destination host=&localhost& port=&25&/&&/outbound-socket-binding&&/socket-binding-group&3、cd /usr/local/jboss-as-7.1.1.Final/bin 启动 standalone.sh播放器加载中,请稍候...
该用户其他文档
下载所得到的文件列表CentOS5.8部署jboss7.1.1和jdk6.0.docx
文档介绍:
CentOS5.8 部署 jboss7.1.1 和 jdk6.0一、安装准备。1、JDK7.0:jdk-7u1-linux-x64.tar.gz下载地址:hnetwork/java/javase/downloads/index.html2、JBoss7.1.1: jboss-as-7.1.1.Final下载地址:ssas/downloads二、配置环境变量。1、 JAVA 配置环境变量有 2 种方式:01. 修改.bashrc 文件或者.bash_profile 文件,此两文件一般在主...
内容来自淘豆网转载请标明出处.
浏览:10次jboss-7.1.1无法启动? jdk是1.7的_百度知道
jboss-7.1.1无法启动? jdk是1.7的
:不是内部或外部命令,给出的提示是.1&#92:To start JBoss Application Server please see F.1.&#92:\bin\jboss-7.bat提示是直接运行run.bat都是一闪而过;README!进入命令行运行run..bat和standalone,也不是可运行的程序或批处理文件.txt运行standalone
右键计算机 ——&gt.Java\%JAVA_HOME%\lib&#92.; “高级”选项卡 ——&%JAVA_HOME\ 属性 ——&jdk1:&#92.0_29
java和javac命令
正常则为成功 在下载 eclipse
对应系统版本的
就可以运行java代码了您好;lib\ 左边的“高级系统设置” ——&dt.6; 下面“环境变量”系统环境变量变量名
值classpath
点分号默忘记了-----》
..%JAVA_HOME%\Program Files\path
点分号默忘记了-----》bin上面之间复制
下面的变量名复制
在你安装路径复制就行换成你自己的版本java_home
C,首先注意
系统和jdk版本的一致 32和64位的有区别
jdk是运行java的环境
没办法直接运行 1
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁eclipse启动不起来了,求救啊!本人64位系统,eclipse是3.7.1 64bit,JDK是1.7u3。错误如下图。_百度知道
eclipse启动不起来了,求救啊!本人64位系统,eclipse是3.7.1 64bit,JDK是1.7u3。错误如下图。
com/zhidao/wh%3D600%2C800/sign=576f2de634a85edffad9fb/37d3d539bd998d8b621.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http.baidu./zhidao/wh%3D450%2C600/sign=/zhidao/pic/item/37d3d539bd998d8b621.hiphotos.jpg" esrc="http://d://d.baidu<a href="http.hiphotos://d
提问者采纳
貌似我看见了 ws win32的字样,估计是eclipse的版本问题吧
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 jboss jdk1.8 的文章

 

随机推荐