![]() |
Emulator Trouble
Anyone tried the emulator yet? I am trying to install it and am having no luck. I have jdk 6U13 on my machine but the webstart application can't seem to find it. I don't really want to install an older version also. Is there a way I can point the installer at my JDK?
Edit: forgot to add- I am running Debian Lenny |
Re: Emulator Trouble
Try setting your JAVA_HOME variable first. For example:
Code:
$ export JAVA_HOME=/path/to/jdkCode:
# mkdir -p /usr/java/Code:
$ javac -versionIf you still aren't having luck, post the output of the following commands: Code:
$ java -version |
Re: Emulator Trouble
I set my JAVA_HOME variable and that didn't help. I made a direcotry for java in my /usr directory and linked it to my JDK. That didn't do it either. I even added the path to my JDK direcly to my JDK's directory and still nothing. Here is the output from the commands above.
Code:
$ javac -version |
Re: Emulator Trouble
Check your NetBeans configuration (Tools > Java Platforms) for your real Java installation. Then, uninstall the JRE from the package manager, open up your ~/.bashrc in gedit/kwrite/whatever. Then add the following to the bottom:
Code:
export JAVA_HOME=/path/to/jdk/dirIf you're still having issues, download Sun's JDK from http://java.sun.com (not the RPM version). Save it in /usr/java, and execute it (the .bin installer) there (as root): Code:
# sh whatever.binGood luck! |
Re: Emulator Trouble
According to netbeans, my JDK is indeed JDK6 u13. I had to install that with the binary package last time. It is not in the repo's yet. I can't test the download manager now that my JRE has been uninstalled. My question on that is should I use the JRE in the repos or get the binaries and reinstall it?
|
Re: Emulator Trouble
Should be simple enough, as you've alread got the correct JDK installed. Just modify your PATH in ~/.bashrc to include your actual JDK's bin directory, as shown in my last post (you can skip the JDK install). Verify everything is working by trying javac -version. Just remember to log out/in again to make the changes apply to the entire session.
|
Re: Emulator Trouble
All right. Here is what my screen looks like now.
Code:
javac -version |
Re: Emulator Trouble
Unfortunately Java installation has to be this complicated :-/
Installing through the system package manager is usually your best bet, unless (as with your case), the repos are outdated. You should be able to get Java applets working by linking the mozilla plugin to your mozilla plugins directory: Code:
$ mkdir -p ~/.mozilla/pluginsYou'll probably have to add a file handler for .jnlp files to get webstart working. In KDE you can use "File Associations" panel in kcontrol (under KDE Components)/ systemsettings (under the "Advanced" tab). I'm not sure how to do this with GNOME/XFCE, but it's probably similar: Quote:
Code:
$ javaws http://url/of/webstartapp.jnlpCode:
# apt-get install alien |
Re: Emulator Trouble
I thoguht I uninstalled java6 in the package manager. Everything on my account said I did. When the package manager still complained that it couldn't find my JDK, I logged into a different account and java6 was still there. I checked the package manager again and sure enought java6 is still selected. However, when I went to mark it for uninstallation, the manager tells me that OpenOffice will be removed also. I will try command line and see what Open office has to say. Thanks for all your help.
|
Re: Emulator Trouble
Not sure if this issue has been resolved yet, but I would like to post a few ideas as to why this might be happening.
By default Debian will try to use the OpenJDK for all java related activities in order to comply with their FSG (Free Software Guidelines). This many times will cause problems with application wanting the official compiler. The reason that it says OpenOffice must be uninstalled is that the OpenOffice packages in the Debian Archives rely on an installed JRE, therefore apt will not let you remove the JRE. I would say you should run these commmands to try resolve this problem: "sudo aptitude reinstall sun-java6-jdk sun-java6-jre" then "sudo aptitude purge openjdk-6-jdk openjdk-6-ire" If that doesnt help just go ahead and post back. Hoping my knowledge as a Debian Maintainer comes in handy, Luke Cycon |
| All times are GMT -5. The time now is 07:34 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi