# [java] A Java Compiler????

This topic is 4574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I cant find a java compiler. I found plenty of websites with tutorials but no compiler. I need a compiler that can do java3d. Free compiler would be best!! Can someone please post a link in this thread?

##### Share on other sites
Quote:
 Original post by funbitI cant find a java compiler. I found plenty of websites with tutorials but no compiler. I need a compiler that can do java3d. Free compiler would be best!!Can someone please post a link in this thread?

You need to download the Java SDK from Sun's site: Java Platform, Standard Edition (Java SE).

##### Share on other sites
And in case you mean IDE and not compiler, NetBeans and Eclipse are a couple of good free options.

shmoove

##### Share on other sites
Hi,

If you do actually mean a Java native compiler, check out Java native compilers.

- Chris

##### Share on other sites
In addition to the FREE java SDK which comes with the java compiler you will need the Java3D SDK.

Java3D Homepage

Install the Java SDK first and then the Java3D and you should be set to start on those tutorials and examples.

##### Share on other sites
I am a bit confused!! I dont want to make .exe's, just java files. I got and installed the java sdk. I have notepad2 which can save as java files(.java) But in the jdk folder there is a include folder?? What do I do to type out java files simply.

##### Share on other sites
Well, you might want to look for a Hello World tutorial or some tutorial for beginners starting to get into Java.

But I'll give you a crash course

class HelloWorld {     public static void main( String args[] ) {          System.out.println("Hello World!");     }}

Take the above code and save it to a java file named HelloWorld

Then you have a couple options to compile it to a .class file which is the file extension of compiled java programs.

You can either use the command line
javac HelloWorld.java

you need to be in the directory that the file is in if you want to use the command line.

Or you can download an IDE (Integrated Development Enviroment) I would recommend JCreator LE

once that is installed open the file HelloWorld.java with JCreator there will be
a blue down arrow on top of a file icon. That compiles the file and then the blue right arrow will execute the created HelloWorld.class file.

shmoove

##### Share on other sites
I got the JCreator LE,love it!! I also got and installed the java3d sdk.
Ok,I try to use Jcreator to make a class file and it does it but when I try to run the program(in Jcreator) it says

"Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.5.0\jre\bin\J3D.dll: One of the library files needed to run this application cannot be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at javax.media.j3d.MasterControl$22.run(MasterControl.java:889)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:229)
at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3533)
at lesson01.init(lesson01.java:24)
at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:262)

I went and looked in the java bin,There is no j3d.dll
I installed the java3d sdk so whats up?
Also how do you run class files?

##### Share on other sites
Hi,

j3d.dll is part of Java3D which I'm sure will install into it's own directory (I could be wrong, last installed Java3D ages ago), so you won't find the dll in the Java SDK folder.

You have a classpath problem, I've never used JCreator so I don't know how, but there should be some way to tell it where the dll is.

In netBeans for example you right click on the project to get to properties and from there you can add compile time dependancies like dlls.

The simplest way to solve your problem is to copy and paste the dll into the same folder the .class file is compiled into. Then it will automatically be part of the classpath.

I realise I've probably confused you more and for that I apologise. Somebody who uses JCreator will be able to give you a step by step tutorial on how to set up dependancies (the website probably does for one).

- Chris

1. 1
Rutin
22
2. 2
3. 3
4. 4
5. 5

• 9
• 9
• 9
• 14
• 12
• ### Forum Statistics

• Total Topics
633307
• Total Posts
3011290
• ### Who's Online (See full list)

There are no registered users currently online

×