Where is the javax.media.j3d
Hi I install Java3d JDK 1.4.2 but i have only one jar file with com.sun... utility java 3d package what I must do to have package javax.media.j3d?And do I can use java 3d to create games?
Hi I install Java3d JDK 1.4.2 but i have only one jar
file with com.sun... utility java 3d package what I
must do to have package javax.media.j3d?For me it was straight forward process of installing the complete J3D. Extract the files to YOUR_JDK_PATH/jre/lib/ext and/or tell java via the CLASSPATH variable to use the jar's.
And do I can use java 3d to create games?Yes...if you put some brain and effort in it. There are several projects in the web, which care about game programming using J3D. Try to google for them.
Hope this helps.
Kai
Similar Messages
-
Where are the javax.media.* ?
hello,
i want download the packages javax.media.* , but I didn't found its!
Please give me a download's url
Big ThxJMF: http://java.sun.com/products/java-media/jmf/index.jsp
-
Creating a text with transparent background using javax.media.j3d.Raster
Hi, I'm trying to display a text in Java3D using the Raster but I'm not sure to make the background of the text transparent. Does anyone have any ideas.
Here's my code for creating the Raster image:
private javax.media.j3d.Raster getRaster(String str, boolean rotate) {
// Create an empty raster.
javax.media.j3d.Raster raster = new javax.media.j3d.Raster();
// Get a font metrics.
Font font = new Font("Times", Font.PLAIN, 12);
FontMetrics fm = getFontMetrics(font);
// Calculate the raster size.
int width = SwingUtilities.computeStringWidth(fm, str) + 6;
int height = 18;
// Create an BufferedImage.
BufferedImage image = new BufferedImage(width,
height,
BufferedImage.TYPE_INT_BGR);
// Draw the input string on the BufferedImage.
Graphics2D g2d = (Graphics2D) image.getGraphics();
g2d.setFont(font);
g2d.setColor(Color.WHITE);
g2d.drawString(str, 3, 14);
// Set the BufferedImage to the raster.
raster.setImage(new ImageComponent2D(ImageComponent2D.FORMAT_RGB, image));
raster.setSize(width, height);
raster.setType(javax.media.j3d.Raster.RASTER_COLOR);
raster.setCapability(javax.media.j3d.Raster.ALLOW_IMAGE_WRITE);
raster.setCapability(javax.media.j3d.Raster.ALLOW_SIZE_READ);
return raster;
Thank you for your help.Hi,
If you create a new transparent imge you can put a color fill layer below the text layer and either turn off the layer visiblity for the color fill layer (eye beside the color fill layer in the layers panel)
or delete the color fill layer before saving the file as a transparent png. -
Where is the javax sound package for download?
Where is the javax sound package for download? (URL) I got the latest JDK yesterday and tried to compile some audio applet but it looks like all of the Javax stuff is missing from the latest JDK.
Where do I download the javax sound package ?
DanThis is an audio player that another posted here. I tried to compile and run it but here were the results.
javac SimplePlayerApplet.javaSimplePlayerApplet.java:9: package javax.media does not exist
import javax.media.*;
^
SimplePlayerApplet.java:11: cannot find symbol
symbol: class ControllerListener
public class SimplePlayerApplet extends Applet implements ControllerListener {
^
SimplePlayerApplet.java:14: cannot find symbol
symbol : class Player
location: class SimplePlayerApplet
Player player = null;
^
SimplePlayerApplet.java:122: cannot find symbol
symbol : class ControllerEvent
location: class SimplePlayerApplet
public synchronized void controllerUpdate(ControllerEvent event) {
^
SimplePlayerApplet.java:44: cannot find symbol
symbol : class MediaLocator
location: class SimplePlayerApplet
MediaLocator mrl = null;
^
SimplePlayerApplet.java:63: cannot find symbol
symbol : class MediaLocator
location: class SimplePlayerApplet
if ((mrl = new MediaLocator(mediaFile)) == null)
^
SimplePlayerApplet.java:68: cannot find symbol
symbol : variable Manager
location: class SimplePlayerApplet
player = Manager.createPlayer(mrl);
^
SimplePlayerApplet.java:69: cannot find symbol
symbol : class NoPlayerException
location: class SimplePlayerApplet
} catch (NoPlayerException e) {
^
SimplePlayerApplet.java:130: cannot find symbol
symbol : class RealizeCompleteEvent
location: class SimplePlayerApplet
if (event instanceof RealizeCompleteEvent) {
^
SimplePlayerApplet.java:165: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
} else if (event instanceof CachingControlEvent) {
^
SimplePlayerApplet.java:166: cannot find symbol
symbol : variable Controller
location: class SimplePlayerApplet
if (player.getState() > Controller.Realizing)
^
SimplePlayerApplet.java:170: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
CachingControlEvent e = (CachingControlEvent) event;
^
SimplePlayerApplet.java:170: cannot find symbol
symbol : class CachingControlEvent
location: class SimplePlayerApplet
CachingControlEvent e = (CachingControlEvent) event;
^
SimplePlayerApplet.java:171: cannot find symbol
symbol : class CachingControl
location: class SimplePlayerApplet
CachingControl cc = e.getCachingControl();
^
SimplePlayerApplet.java:181: cannot find symbol
symbol : class EndOfMediaEvent
location: class SimplePlayerApplet
} else if (event instanceof EndOfMediaEvent) {
^
SimplePlayerApplet.java:184: cannot find symbol
symbol : class Time
location: class SimplePlayerApplet
player.setMediaTime(new Time(0));
^
SimplePlayerApplet.java:186: cannot find symbol
symbol : class ControllerErrorEvent
location: class SimplePlayerApplet
} else if (event instanceof ControllerErrorEvent) {
^
SimplePlayerApplet.java:189: cannot find symbol
symbol : class ControllerErrorEvent
location: class SimplePlayerApplet
Fatal(((ControllerErrorEvent)event).getMessage());
^
SimplePlayerApplet.java:190: cannot find symbol
symbol : class ControllerClosedEvent
location: class SimplePlayerApplet
} else if (event instanceof ControllerClosedEvent) {
^
19 errors
So what am I missing ...and where do I get it ??
Dan -
Hi
i am chnage Java 3d object loader applet background color for run time.
here i attached my coding.
error will be displayed like
javax.media.j3d.CapabilityNotSetException: Background: no capability to set color
pls help me, how to set runtime coor setting option.
regards,
M.Mathivanan- I will say again. Please do not cross post. This is thread #3 for the exact same question. Keep all your questions regarding the same problem in the same thread. You will find the answer you need in the following thread:
http://forum.java.sun.com/thread.jspa?threadID=673593&tstart=0 -
Problem to find the javax.media.jai package
hi everyone!! it's not the first time I ask this question, but i have troubles to find javax.media.jai..
I've downloaded the jai 1.1 and everything is fine... However, I have to use classes from the javax.media.jai... I made the import, and it doesn't find it, as if it doesn't exist... Someone tells me that the jai contained it, so why doesn't it find it??
i'm using a java version 1.2.. do you think that is the problem?
thanks a lot, and sorry for my bad english!!
Anne.thanks a lot!!! it helps me but doesn't resolve my problem!! ;o)
you may be right,, it's a classpath problem. well i work under unix, so i have to give my classpath by the command setenv CLASSPATH ...
i didn't find the jai_core.jar in my JAI 1.1, I have only the BugFixes.jar...
I tried to download the latest version of JAI, and unfortunately i have a new problem with the .tar, i don't manage to "open" it... the command
tar xvf [archieve file] gives me some errors!!
so I don't know what I'm gonna do.... I think I'm going to ask someone to send me the package, or the specific classes I need, it would be more easier!!
Thanks
Anne. -
Javax.media,j3d import problem
Hi,
I had one old project and have tried to run it today.
I have downloaded jdse 1.5 and I have tried to compile with eclipse 3.1 but I can't import these classes, the errors are :
Severity Description Resource In Folder Location Creation Time
2 The import javax.media cannot be resolved Demoirb2000nonrealtime.java RTEnvironment/Demo line 15 8 de diciembre de 2005 10:49:38
2 The import javax.vecmath cannot be resolved Demoirb2000nonrealtime.java RTEnvironment/Demo line 16 8 de diciembre de 2005 10:49:38
2 The import com.sun.j3d cannot be resolved Receiver.java RTEnvironment/Demo line 4 8 de diciembre de 2005 10:39:33
what can I do?try a search on google for javax.media and the others import I'm not sure but I think they are not standard java.
-
Where find the 6in1 Media Card Reader (Mega180)?
Excuse me for my poor English! I'm Italian.
I buyed a PC Mega 180 "no deluxe" version and I want to buy also the optional 6in! Media Card Reader original for my Mega 180. Where I find it?
Thank's
OresteEscusez moi pour la réponse en italien...
Sorry for the italian answer...
Traurig für die italienische Antwort...
Pesaroso para a resposta italiana...
I sayd that if he buy an internal smart card reader BLACK he can mount it on the bay of 3.5" & the barebone is all black!!! -
Where are the iMovie media files kept?
Can I access individual iMovie media clips to copy to another hard drive?
Thanks,
ChrisHi
Yes and NO
a. If You imported a say 10 minutes of movie and use 1 minute of this as a clip in TimeLine.
THERE IS ON Such clip at all. Only a reference note in Your movie project describing protocol
eg use this (10min clip) from frame 00:00:02:00 to frame 00:00:03:00 (=1min)
Ther is no such actual clip only the Non-tuched original import material
b. To find what You imported: Find the movie project icon (with a Star on it)
[ctrl-click] on this once and a menu will fold out.
Here select "Show content of package"
Now You see a new window with a folder named "Media" and in this is Your imported material.
c. To just get the selected material You need to export this out as a full quality QuickTime movie
Then import this into a new movie project.
Now You'll only get the clip - but You can't extend it anymore though the beginning and end
of the full (prior) material now is absent.
Yours Bengt W -
When I import my footage a choose to create proxy media. However when I create a munticam project and change preferences to use proxy media it says its missing. I've got to be doing something wrong!!
AndyOllery,
You have a couple of choices concerning proxy media when you import your footage. Make sure you have actually created those files. See Transcode Media Files for detailed information.
To directly answer your question, your proxy files will live in ~/Movies/Final Cut Events/EVENT NAME/Transcoded Media/Proxy Media folder. (~/Movies assumes you are using your localstartup drive)
If you don't see the files in there, niether will FCPX. If you don't see them there, then use the steps in the above link to make them now.
Best of Luck!
MM -
A probem about the javax.media
How can I read such infomation as the file's(*.mp3) header ,length ,Duration and so on;
Im kinda dealing with the same problem, well not really but im sure you can help. How can i add the .zip file to the application. THis is the first time im using windows for developement, i mainly use unix or sun boxes. I used code warrior for java to develope the application, it runs fine in code warrior but not in dos. I can run only simple .java apps in dos which have NO import statements in the code.
I have a program which i import javax.com, the error i get while compiling through ms-dos is "package javax.comm does not exist" when i use the javac Comport.java executable compiler.
Please help...
thanks for your time,
Steven -
Javax.media Where download it?
Hi all.
I've downloaded and create the jmf.jar from jmf-2_1_1e-scsl-bin.
Now I try to compile this:
[cut]
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import javax.media.*;
import javax.media.control.FrameGrabbingControl;
import javax.media.format.VideoFormat;
import javax.media.util.BufferToImage;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
[cut]
but I've this errors:
[cut]
Scan.java [15:1] package javax.media does not exist
import javax.media.*;
^
Scan.java [16:1] package javax.media.control does not exist
import javax.media.control.FrameGrabbingControl;
^
Scan.java [17:1] package javax.media.format does not exist
import javax.media.format.VideoFormat;
^
Scan.java [18:1] package javax.media.util does not exist
import javax.media.util.BufferToImage;
^
4 errors
Errors compiling Scan.
[cut]
So, where I've to download the javax.media pakage?
thank you.
jmaxosft
[cut]Try:
http://java.sun.com/products/java-media/jmf/2.1.1/download.html
Yous should choose cross-platform java and in zip file you have
in directory :src\share\ packet source for javax, copy it to your
project directory and that's it...
I hope it helps... -
Checking if the user has j3d installed
i am making a program using j3d and normal java i wanted to find out if the user has j3d installed. is there anyway to do this
try
//try to instantiate a j3d class
Object o = (Object) new javax.media.j3d.Shape3D;
catch (java.lang.NoClassDefFounderError ){
//class not found so handle it
} -
Need javax.media package
Hi.. Everyone
where do i get this javax.media package ? will it not be available with jdk?
Thanks in advance.Some of it is included with JMF...you have to install JMF specificlly to have access to the javax.media classes that JMF uses...
-
Import javax.media.* is not working
Hi,
I'm new to java and i was trying to create a media player using the javax.media package from the JMF. I installed it using the windows setup and it seemed to install correctly. Testing it with the java.sun.com applet tester worked. The media player is also working...
The only problem is that when i import javax.medis.* it gives me a compiler error:
package javax.media does not exist
my code is as follows:
import java.applet.*;
import java.awt.*;
import java.net.*;
import javax.media.*;
public class PlayerApplet extends Applet {
Player player = null;
public void init() {
setLayout( new BorderLayout() );
String mediaFile = getParameter( "FILE" );
try{
URL mediaURL = new URL( getDocumentBase(), mediaFile );
player = Manager.createRealizedPlayer( mediaURL );
if (player.getVisualComponent() != null)
add("Center", player.getVisualComponent());
if (player.getControlPanelComponent() != null)
add("South", player.getControlPanelComponent());
catch (Exception e){
System.err.println( "Got exception " + e );
public void start() {
player.start();
public void stop() {
player.stop();
player.deallocate();
public void destroy() {
player.close();
} Could someone please help me out here... i've tried all the few probable solutions... but to no avail...Well changing the classpath to the correct one still didn't work.... but i still found the solution.
The Developer Environment that i use is JCreator and it seems it ignores the classpath and has its own settings for the class path... changing this also didn't work.
What worked was copying the Jar files from the JMF2.1.1e installed location into the path of the original classpath
Maybe you are looking for
-
Macintosh HD is damaged and can't be repaired
Hi, The other day i decided to purchase and download Mac OS X Lion off from the AppStore for my iMac 21"inch, however after i sucsessfully downloaded the OS it began to Installing, then when it passes 5 minutes of installing the window displays a wor
-
Accounts Payable Rapid Mart Performance Issue
We are currently running the SAP AP Rapid Mart 3.2 and facing a performance issue on the SAP side for the data flows: DF_VendFinDocFactOpenDelta_SAP and DF_VendFinDocFactClearDelta_SAP. These data flows pull from the same tables and one of them bein
-
Lion Server: how best to backup user mail?
What's the best way to backup user Mail on Lion Server? Currently I do a nightly rsync of the /Library/Server/Mail directory to another off-site machine, but it strikes me that I'm not entirely sure (a) if this is capturing all necessary info, and (b
-
Dear experts, I face a problem that system get main work center from equipment master data as a default main work center in maintenance plan when creating maintenance plan. however, if main work center in equipment is changed later, the change will n
-
Copying fields froma dynamic table
i have a dyanmic table say t1. now i have craeted another dynamic table say t2 with some fields in common with table t1. i won't be knowing which fields are in common. the common fields will be stord in another table t3. now i need to copy the common