Solved

How to access Java3D classes (in JBuilder environment)

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now