What is going on?  It used to work now it doesn't

Alright I unzipped lwjgl-0.4.zip here:

D:\Programs\lwjgl-0.4

Set my path there. Everything worked super. Compileing running, etc. from commandline. I had java 1.4.0

My friend downloads it too, does the same thing I did. It didn’t work for him. He had java 1.4.1

I upgraded to java 1.4.1 It no longer works. I’ve set the classpath to the jar and it still doesn’t what the heck do I do?

Dunno, I’ve been running 1.4.1 since it was in beta without any troubles. By “doesn’t work” what do you actually mean? Got an exception to show us?

Cas :slight_smile:

It can’t find the package org.lwjgl

What are your path classpath settings? I’m on windows 2000

Not sure if it helps. In eclipes i add lwjgl.jar to java build path > libraries. and put lwjgl.jar + lwjgl.dll in the root directory of the project.

lwjgl.jar needs to be in the class path, and lwjgl.dll in the project directory.

You didn’t by any chance add the lwjgl.jar to the exensions in JDK1.4.0 so it finds it whatever you do to the classpath, but not in 1.4.1 (The classpath, by the way, seems to be missing in you description of what you do to make it work)

/M

In all the years I’ve been programming in Java for some reason I’ve never come across a CLASSPATH variable, so I’m reasonably confident that most other folks should be able to live without it too…

Cas :slight_smile:

Could someone please tell me how they set up LWJGL step by step?

I unzipped it to D:\Programs\lwjgl-0.4\ (dlls jars here)

I added a value to the PATH varaible to that directory. Compiling and running worked for every program (with just the path and everything in the above folder) until I upgraded to 1.4.1_02 from 1.4.0.

Here are my variables:

CLASSPATH: .;D:\j2sdk1.4.1_02\LIB\TOOLS.JAR;D:\j2sdk1.4.1_02; (I also had another value pointing LWJGL.jar but that didn’t help)

(condensed)PATH: D:\j2sdk1.4.1_02\bin;D:\Programs\lwjgl-0.4

(complete)PATH: C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;D:\j2sdk1.4.1_02\bin;D:\Programs\lwjgl-0.4

It used to work with just the path, why won’t it now?

Drat the smileys

In that fragment above you haven’t got the lwjgl.jar in your classpath. (I know you can live without using classpaths and such, but I prefer to keep all my applications seperate from the JRE installation so upgrades don’t break things ;D)

Also, you’ll need to tell Java where the lwjgl.dll is - my preferred solution is to mention it on execution as in “-Djava.library.path=”

I have it working now. Thanks