JMF and Netbeans - java

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.

Related

The folder of eclipse-plugin in JCDK 3.0.5u1 not found?

I am new to Java Card development.
I want to install the eclipse-plugin for Java Card Classic Development Kit 3.0.5u1 followed by http://blog.csdn.net/chenxu6/article/details/50731125
and download the java_card_kit-classic-3_0_5-u1-win32-do-b35-24_may_2017.msi from
http://www.oracle.com/technetwork/java/embedded/javacard/downloads/javacard-sdk-2043229.html.
after installed the msi, I can't find the folder eclipse-plugin to install the new feature of Java Card.
Anybody can tell me how to do?
The folder is inside C:\Program Files (x86)\Oracle\Java Card Development Kit 3.0.5u1\eclipse-plugin by default.
In your case, if you are not able to find the folder, it is possible that you might have installed the .msi in different folder/drive due to which you are unable to find the same.
New msi installer file is available now.
'java_card_kit-classic-3_0_5-u1-win32-do-b36-03_jul_2017.msi'
http://www.oracle.com/technetwork/java/embedded/javacard/downloads/javacard-sdk-2043229.html
This file contains 'eclipse-plugin' directory and files.
You should be able to install with it correctly.
I have installed previous version of msi installer java_card_kit-classic-3_0_5-u1-win32-do-b35-24_may_2017.msi
then this installer got same result with yours. Actually I could not use this.
I think this problem is relative to msi installer package.

What is the home directory for JDK?

I am having a problem in selecting home directory for JDK. Even though I have selected the following path: "C:\Program Files (x86)\Java\jre1.8.0_91", it keeps showing the error: "The selected directory is not a valid home for JDK". My java folder has two folders- bin and lib.
Window for selecting home directory
Kindly help me in selecting home directory.
Thank you!
You have currently located a JRE, or Java Runtime Environment. That does indeed contain a java executable and can launch JVMs, but it's not made for development, rather more as a "Java client". For example if you look into it's /bin folder, you won't find the javac executable needed to compile.
What you need is a JDK, or Java Development Toolkit. It contains all the JRE contains, with additional tools for development. You can find it for download on the Oracle website.
Your home directory will jdk not jre. If your jdk is installed properly then there will be a jdk folder. Try setting C:\Program Files (x86)\Java\jdk1.8.0_91\bin
Your home directory for JDK would be "C:\Program Files (x86)\Java\jre1.8.0_91\bin"
try this on windows to know the home of your jdk
c:\> for %i in (java.exe) do #echo. %~$PATH:i

java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path

Trying to install JOGL for my Windows Eclipse installation and I'm picking up the error as described in the title.
This is what I did to try and install JOGL:
Downloaded jogamp-all-platforms.7z
Followed http://jogamp.org/wiki/index.php/Downloading_and_installing_JOGL for full installation using native libraries:
Made a new directory called jogl-2.0
Copied the shown .dll files to jogl-2.0\lib
Copied the shown .jar files to jogl-2.0\jar
Copied the shown .zip files to jogl-2.0\src
In Eclipse, went to Build Path => Add Libraries... => User Library
Created a new user library, set it to system library
Add the jars from External JARs
Add the dlls by specifying the libraries for each JAR
Add javadocs from URLs
Add sources from .zips
Yet it still reckons I haven't added the libraries in to complete the installation. I also added jogl-2.0\lib to my %PATH%, but that also did nothing.
Whilst typing this question, I found the solution!
Problem was checking the box for 'system library' in the 'Add Library' dialog. This needs to remain unchecked. If anyone can tell me why, I'll be grateful.
When I unset that, it was fine, but yelled because it couldn't find a couple more JAR files.
I added these JAR files to my jogl-2.0\jar directory and it worked:
gluegen-rt-natives-windows-amd64.jar
jogl-all-natives-windows-amd64.jar
I didn't need to do anything more within Eclipse.

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

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.

JSmooth question on bundling a JRE

I'm trying to bundle a JRE with my jar file so that I can run my application on any windows computer, regardless of if it has Java or not. The jsmooth manual says:
For the option to work correctly, you have to put a JRE in a directory near the EXE (generally in a subdirectory called "jre" or whatever). Once the exe is generated, it will FIRST try to locate the JRE at the location mentioned. If it can't be found there, then it will fallback in the normal jre look-up mode (search for a jre or a jdk in the Windows registry or in commonly-used environment variables). There is no JVM-version check when using a bundled JRE, as the packager is supposed to bundle a suitable JVM for the application.
Does this mean that the jre subfolder should be included in the jar, be its own separate jar, or put in the folder that comes along with the exe? If it is supposed to be in a folder with the exe, how can I specify the relative path to the jre subfolder?
My directories are as follows:
setup/
-jre/
-myprogram.exe
I tried using ..\jre, .\jre, ..\setup\jre in the GUI screen, but none of them worked.
Any ideas or leads would be greatly appreciated. Thanks so much!
EDIT: when I tried jre (and ..\jre I think), I got the following error message from windows when I tried running it "MyProgram.exe has stopped running." When I look at the problem details, it says APPCRASH and the fault module name is jvm.dll
just put the "jre" folder next to the exe, and write "jre" (without quotes) in the GUI of jsmooth
As an alternative, I would suggest using the mature open source project, NSIS. You could write an installer that would download and install the JRE, and then create shortcuts to run your program.
Here are some useful links:
http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script
http://nsis.sourceforge.net/Java_Launcher
Have you tried Launch4J (http://launch4j.sourceforge.net/), we switched from JSmooth to this a while ago, as it was more up to date and had more features.
But, put the jre folder in the same folder as the .exe, then use jre\ as the path to it. You'll need to make sure the working folder of the .exe is the installation folder though. And make sure you have a full JRE in the jre folder.

Categories