| View previous topic :: View next topic |
| Author |
Message |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Sat Apr 22, 2006 1:16 pm Post subject: trying to install Laszlo, need to set JAVA_HOME |
|
|
Hey, I want to install Laszlo, and to do this I need to set my JAVA_HOME, which is easy enough to do, but I can't find where I put my Java system dir (not my apps dir!) I tried searching for Java, JDK, SDK, J2sdk, etc....I installed the latest SDK a few months ago (which may not be the latest now.) Anyone know where I might find it or what it is probably called?  _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
shengchieh Xandrosianschwing
Joined: 11 Jan 2004 Posts: 2382 Location: Palo Alto, CA
|
Posted: Sat Apr 22, 2006 7:15 pm Post subject: |
|
|
On my system,
$ whereis java
java: /usr/bin/java /usr/local/java /opt/j2re1.4.2_01/bin/java
Also,
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 26 2006-01-21 05:25 /usr/bin/java -> /opt/j2re1.4.2_01/bin/java
so I guess my java is in /opt/j2re1.4.2_01.
On a console, type
whereis java
If you don't have java, get it from Sun's site,
https://sdlc6b.sun.com/ECom/EComActionServlet;jsessionid=7F28E84C44C0D1D9CA5E12CAAA47293D
Sheng-Chieh _________________
 |
|
| Back to top |
|
 |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Sat Apr 22, 2006 10:08 pm Post subject: |
|
|
| Quote: | | so I guess my java is in /opt/j2re1.4.2_01. |
Ok, I'm definitely an idiot
I did whereis Java last night and I looked at every line but this one (must have been tired cuz it was late!)
| Code: | | /opt/j2re1.4.2_06/bin/java |
then I did:
| Code: | ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2006-02-13 14:47 /usr/bin/java -> /etc/alternatives/java |
So I should set JAVA_HOME to /opt/j2re1.4.2_06/ right? _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Sat Apr 22, 2006 10:51 pm Post subject: |
|
|
wait that's not right...that's my jre...where is my jdk???
I know it's working because I installed the jdk a while ago, and set my path:
| Code: | /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
|
And I have javac-ed and ran about 20 different programs since then, and just checked it now and it still works! _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Wed Apr 26, 2006 9:12 am Post subject: |
|
|
Can anyone help me here? I have tried searching for j2, etc. Also it may be important to note that my Java version includes SableVM. What directory do I need to set my JAVA_HOME to? I know I had some kind of j2 directory before, where the (bleep) did it go??
Hope someone can help...  _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Wed Apr 26, 2006 2:19 pm Post subject: |
|
|
Ok, did a little research and found out that SableVM is the JVM that Eclipse uses...since I uninstalled Eclipse it must have not uninstalled SableVM...however I installed the JDK separately from Sun, so my machine must be configured to use both? I am confused, so now I am searching for a SableVM folder... _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
web_dev Xandrosianling

Joined: 24 Jan 2006 Posts: 474 Location: Pennsylvania
|
Posted: Thu Jun 15, 2006 1:23 pm Post subject: |
|
|
Well this was very strange, I ended up finding out that both my java and javac are in my sableVM directory!! Anyhow, after struggling with this I ended up installing it in windoze and it works perfectly. Laszlo is by far the only app I have ever had an easier time installing/using in windows than in Linux. _________________ Welcome to the friendly XandrOS forums!
Registered Linux user #407955
 |
|
| Back to top |
|
 |
|