Skip to main content

Build problem, possible pebkac

9 replies [Last post]
ddew
Offline
Joined: 2004-06-29
Points: 0

I feel really silly asking this but my build fails with:

compile:
[javac] Compiling 626 source files to /root/coding/lg3d/lg3d-core/build/classes
[javac] javac: invalid target release: 1.5
[javac] Usage: javac
[javac] where possible options include:

I followed the instructions by the letter, any hints?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ddew
Offline
Joined: 2004-06-29
Points: 0

Nevermind, was having problems with an old java install I thought I had removed.

jolatrox
Offline
Joined: 2004-07-26
Points: 0

What was it in your old installation that you had forgotten?

I have the same problem as you, but I can't find any traces of my old installation anywhere...

tmccrary
Offline
Joined: 2004-06-29
Points: 0

Do this, type:

echo $JAVA_HOME

What do you get?

I had this problem running Gentoo, and it was because of some bizarre issure with Python 2.3.3 and java-config (Oh how I despise java-config...).

ddew
Offline
Joined: 2004-06-29
Points: 0

I had a similar problem, when I did my slack install I never chose to install java so I made the assumption that it wasn't installed. Turned out it was in /usr/lib/java. Follow his suggestion with echoing java_home, it sorted it out for me.

paulby
Offline
Joined: 2003-06-13
Points: 0

One thing we could do is hard code JAVA_HOME to be /usr/java/jdk1.5.0 in the scripts, rather than taking the users JAVA_HOME environment variable. The question is does everyone have 1.5 installed at that location ?

ddew
Offline
Joined: 2004-06-29
Points: 0

Mine's in /usr/lib/java

Standard location on slack :)

paulby
Offline
Joined: 2003-06-13
Points: 0

Oh well, so much for that idea.

Another idea is to add better diagnostics to check java version, java 3d and jai installation and perhaps present the information in a splash screen as PLG starts up

ddew
Offline
Joined: 2004-06-29
Points: 0

Sorry if my response sounded a bit rude, what I really mean is that having a java-location hardcoded in the config would be a Bad Thing. So far it's no real problem as the only people that are using it are primarily devs, but when we switch focus and try to make a usable desktop of it that's one thing that has to be considered.

Your idea about probing for the current jdk etc is great, even better would be if there was some app that even could write up a simple config file, much as xorgcfg or something.

paulby
Offline
Joined: 2003-06-13
Points: 0

Having an installation app that searched various locations looking for a suitable VM and then automatically updating the startup scripts would be very cool, great idea ddew.