Solved

How to access Java3D classes (in JBuilder environment)

Posted on 2002-03-24
5
267 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
The viewer will learn how to implement Singleton Design Pattern in Java.

685 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