Solved

How to access Java3D classes (in JBuilder environment)

Posted on 2002-03-24
5
266 Views
Last Modified: 2012-08-14
I've installed the Java3D package
(installation file: java3d-1_2_1_03-win32-opengl-sdk.exe), but when I compile an example program using the package, I get errors telling me that classes under the following packages cannot be accessed:

import com.sun.j3d.utils.applet.MainFrame;
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.*;
import javax.media.j3d.*;
import javax.vecmath.*;

The packages are all part of Java3D.

My JBuilder 4 says it uses the following JDK: "java 1.3.0-C". My OS is Win98 SE.

I'd appreciate clear instructions on how to get JBuilder to find the Java3D packages and files. :)
0
Comment
Question by:raives
  • 3
5 Comments
 
LVL 4

Expert Comment

by:Oliver_Dornauf
ID: 6893760
You need to append the jar files to your classpath.
0
 

Author Comment

by:raives
ID: 6894611
As my operating system is Windows 98, I don't have a CLASSPATH variable.

Can it be specified somewhere in Win 98?!
0
 

Author Comment

by:raives
ID: 6921672
The solution was the following:

1) Extract all the Java 3D files into JAVA.HOME/lib/ext.

2) Include the extracted files as a required library in JBuilder ("Project Properties" -- "Required Libraries" -- "Add...").

Simple after all.
0
 
LVL 2

Accepted Solution

by:
triso earned 100 total points
ID: 6932424
Hi raives.

An easier way is to use "Tools | Configure Libraries | New" to get the New Libraries Wizard.  You do not have to extract files from the jar files and it will be able to use documentation and source code as well.

0
 

Author Comment

by:raives
ID: 6932440
Thanks.

Note, however, the jar files don't need to be extracted in my solution either.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
more than one jdk and one jre 1 50
tomcat startup error 5 102
Adding multiple JVM environments to RedHat 6 7 47
passing enum to a method 3 18
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question