Java - installation pacakge javax.media.jai in Windows Seven X32 - java

This is a pretty simple question. .
I just download package javax.media.jai and installed according to instructions
Download and Installation
The downloaded objects :
jai-1_1_2_01-lib-windows-i586.exe
jai-1_1_2_01-lib-windows-i586-jre.exe
jai-1_1_2_01-lib-windows-i586-jdk.exe
I'm using IDE Netbeans 6.8 and Operating system Windows7 x32.
but there is still error and the error said : package javax.media.jai does not exist.
How to solving this problems ?
Thanks for any help guys :)

Download this zip file and extract the jar.
Now add the location of the jar to the Netbeans.
In netbeans goto Properties -> Sources -> Compile tab and add the JAR file.

Related

JMF and Netbeans

I have installed the JMF for windows (jmf-2_1_1e-windows-i586.exe) from the following link:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html#7372-jmf-2.1.1e-oth-JPR
but when I double click on the executable file it unpacked to:
C:\Users...\TEMP
I don't know how to solve this problem.
I need to add the jar files to Netbeans.
Any help would be appreciated.
During installation the JMF-2.1.1, you can specify destination folder where you want to install the JMF:
Change the destination folder and install it either to
C:\Program Files\JMF (for 64 bit JMF)
or
C:\Program Files(*86)\JMF (for 32 bit JMF)
location according to system requirements.
After the installation, you can find your jar files at location:
C:\Program Files (x86)\JMF2.1.1e\lib.
You can add your jar files(customizer.jar, jmf.jar, mediaplayer.jar, multiplayer.jar) by choosing the Add jar option under Libraries section in NetBeans.
I have installed JMF with Netbeans by installing the zip folder cross-platform java from the following link:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html#7372-jmf-2.1.1e-oth-JPR
and at NetBeans Project, I added to the project library the following .jar files:
customizer.jar
jmf.jar
mediaplayer.jar
multiplayer.jar
I hope this will help.

JFreeChart Java JAR not running on a different machine

I have created an application using the JFreeChart library for use on another machine.
Previously I have developed applications with JFreeChart (using the same libraries) which has worked fine on other machines. The only difference is this machine is running Vista.
Please see below for the run-time exception I am getting:
The class that cannot be found, however, is located in the highlighted jar in the below image showing my imported libraries for the JAR. I have also established that this JAR is included in the manifest for the application. See below image:
So I very much need this to work and have no idea where to look next - or what is causing this problem!
Development machine Java version:
1.7.0_45
Target machine Java version:
1.7.0_45
Thanks in advance.
Check the Class-Path attribute in your JAR's manifest, which should contain entries like this:
Class-Path: lib/jfreechart-1.0.17.jar lib/jcommon-1.0.21.jar …
Also, examine dist/README.TXT in your NetBeans project folder, which should say something like this regarding libraries required by your project:
To run the project from the command line, go to the dist folder and
type the following:
java -jar "CISOnlineMonitor.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
This has nothing to do with os i belive.You dont have all the necessery libs within your jar.Try to open a jar and see if you have them in.Fact that you are able to run it on your maschine only proves that.Make executable jar with eclipse or whathever you use.And when it ask you for libs check -Extract required libraries into generated Jar.
if you dont know how to get to that point
File>Export>Java>Runnable Jar File> Runnable JAR File Specification.
Also right click on your project and check Your build path.
RightClick project>Properties>Java Build Path>Libraries
Make sure you have everything correct
EDIT-
As i see you use NetBeans im not sure exactly how to find all this there.Bud it will be very similiar.

JavaFX on WindowsXP Error

I created a runnable .jar file from a project I built in Eclipse Juno. The project uses the JRE7 and JavaFX libraries, which I added to the build path.
Build Path Settings
The .jar file executes successfully on Windows 7 machines. However, when I try to run the .jar file on a WindowsXP machine, it fails with the following linking error:
Error on WindowsXP
The error reads:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: com.sun.glass.ui.win.WinApplication._invokeLater(Ljava/lang/Runnable;)V
at com.sun.glass.ui.win.WinApplication._invokeLater(Native Method)
at com.sun.glass.ui.Application.invokeLater(Application.java:338)
at com.sun.javafx.tk.quantum.QuantumToolkit.defer(QuantumToolkit.java:620)
The error occurs just as the program tries to load a class that uses JavaFX, The WindowsXP machine has Java Version 7 Update 40 which comes with JavaFX, so I can't figure out why it would fail.
Could this be a 32-bit vs. 64-bit problem?
Also, on the build path settings, I wonder if I'm including the right JavaFX jar file. I have two to choose from and I'm not exactly sure which one to include. I assume it's the second one because it's part of the JRE.
C:\Program Files\Java\jdk1.7.0_25\jre\lib\jfxtr.jar
C:\Program Files (x86)\Java\jre7\lib\jfxtr.jar
Thanks
1. JavaFX is embedded into JRE, but it is the separate library still now. So, if you use the JavaFX classes in your project, JVM should "know" about that. Your *.jar file should contain info about jfxrt.jar. How to do that?
2. JRE folder used for running the apps, such as *.jar files. JDK/JRE folder used when you developing your apps from IDE. So, you should use the C:\Program Files\Java\jdk1.7.0_25\jre\lib\ path for your project build path' libs.
As far as I know, there is no way to run JavaFX applications on Windows XP.
Despite all of my efforts, I couldn't get the .jar file to execute in Windows XP when I created it in Eclipse. But I could get it to work when the project was exported out of NetBeans. The trick was: I created a new "JavaFX in Swing Application" in NetBeans. That way, the IDE imported all of the necessary libraries for JavaFX. I copied all of my .java files from Eclipse into the new NetBeans project and it worked. Happy with NetBeans!

How to integrate Selenium 2.21.0(previously Selenium RC) libraries with Eclipse?

I want to add Selenum 2.21 libraries to Eclipse java project. I tried two methods.
One through Command line:
I have downloaded the Selenium 2.2(previously selenium RC) from their website for Java and unzipped them. When I write, java -jar (selenium-filename).jar, I am getting 'No main manifest attribute' error.
I know, the line mainclass has to be added in manifest file. There is no folder for the manifest in v2.21.
I also had Seleniumv1.03, which had the Manifest option. I added the line and a new line character, as mentioned in another post in someplace, but still I faced the issue.
two through copy/paste of jar files under JRE system library of the project:
This action is also not allowed. Cannot paste under JRE system library corresponding to the project.
Can you please tell a step by step procedure, other than refering somewhere in Sun tutorial, where they have given about java cfe (jar name) (class name) (class name.class), for defining the entry point... I had tried that too, at present...
For other reference, Java6 Update 32, I have downloaded for SDK and JRE. Firefox 12 and ie9, I am using. Eclipse Indigo IDE for Java Developers is been used.
what you have to do it download selinium jar file and save it in your project folder(Prefer if you have a lib floder)
Then right click on project in project explorer. You can find build path option. Then click on it and it will show you configure build path option. Then you can add your library in to the project. Just show the path for selinium jar file.

FreeTTS Portability Issue

I'm writing an application that makes use of Java's speech API and FreeTTS. The application works fine when I run it from the Netbeans IDE, but when I try to run it from a jar file on my local machine or on other machines, I get the following error:
"java.lang.NoClassDefFoundError: com/sun/speech/freetts/VoiceManager"
Is there any way for me to include the FreeTTS files in my jar file so it can run anywhere?
Any help would be greatly appreciated.
i had the same problem and i found this page:
http://ondra.zizka.cz/stranky/programovani/java/misc/freetts-line-unavailable-classcastexception-kevinvoicedirectory-error-opening-zipfile.texy
I did the easy way, which was to add the freetts installation to my dist folder, change the manifest of my jar on where to find the jsapi.jar, freetts.jar etc. and it is worked. I am just distributing freetts inside my folder.
The hard way is on the link above.

Categories