Solved

How to access Java3D classes (in JBuilder environment)

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
stringclean challenge 26 58
Systems talking to each other 5 110
JDeveloper 12c for 32 bit 4 36
advertisement module in core php 4 94
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

746 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