After .jar
I need to create a jar file to pack my entire desktop application.
The idea is to have only one file that an user could run executing the command
java -jar myapp.jar
The problem is that my application references others jar files and when
I try to pack all this libraries in a single jar, some functions that depend of these
libraries are not working.
Could you help me giving some directions to create a jar file that brings
all dependent libraries correctly?
file throws this exception:
Exception occurred during event dispatching:
org.geotools.factory.FactoryNotFoundException: No factory of kind "FeatureTypeFactory" found. at
org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:206)
at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:95)
at org.geotools.feature.FeatureTypeFactory.newInstance(FeatureTypeFactory.java:235)
at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:217)
at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:168)
at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:247)
at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:279)Regards,
Jairo
Hi,
instead of adding the jar files, run a dependency analysis and add all the classes they contain. Otherwise you will have to make the jar files available on the client classpath, which is what you don't want to do if I understand you correctly. So don't add the jar files but their contents
Frank
Similar Messages
-
Frm-92100 on windows vista after install Developer Suit 10.1.2.02
Hello everybody,
I installed success Developer Suit 10.1.2.02 on windows vista.
But when I tried to run a test form on web browser after .jar is load
A message appears.
FRM-92100: Your connection to the server was interrupted. This may be the result of a network error, or a failure on the server. You will need to re-establish your session.
Details...
Java Exception:
java.lang.StringIndexOutOfBoundsException: String Index out of range: -1
When I check the log file.
….forms90web: Stopped
….Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (127.0.0.1))
This is a critical problem to me.
Please, help me urgent.
Regards.
William.Thanks Sqaimes
But, I don’t know that’s the solution, anyway can you tell me if you know what’s the patch?
Regards,
William
Message was edited by:
william -
Jar not running is sarge and apache-ant shows error of package not found
Hello,
First of all I am not a java programmer. I work in C/C++/C#.
Currently I am dealing a game written in java (1.5) using netbeans 5.5.0 under windows xp. My target is to compile in my development machine and run in the clients machine. everything works fine in windows xp. I open the netbeans ide, load the necessary class libraries, build the project and run it. it runs without any problem.
The problem begins when I run the same project from linux (fedora). it doest not run. It shows some error.
<error platform="fedora 7">
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:406)
at java.awt.Frame.<init>(Frame.java:402)
at java.awt.Frame.<init>(Frame.java:367)
at javax.swing.JFrame.<init>(JFrame.java:163)
at netbeansapplication.nbApplication.<init>(nbApplication.java:52)
at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
</error>
Some of these error were resolved when I set the DISPLAY variable (export DISPLAY="127.0.0.1:0") but the other errors were still there.
But when I open this same project in netbeans and resolve the dependencies with class libraries it works ok after compiling.
I can run it from console (java -jar ...)
And again the same source tree shows the following error when I am in windows !!! (by java -jar ... command)
<error platform="WinXPSP2">
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.parseInt(Integer.java:497)
at cherrygame.global.readConfigForStickProtection(global.java:2060)
at cherrygame.nbCherryGame.<init>(nbCherryGame.java:243)
at netbeansapplication.nbApplication.<init>(nbApplication.java:46)
at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
</error>
I see that netbeans uses ant to compile project in the background.
then I tried using ant to compile.
doing only `#ant compile` where build.xml resides does the compilation.
after that I try to run it (by java -jar ...). again the above error shows up.
What would I do?
If I compile it with netbeans in machine A then it runs well in A but not in machine B.
If I compile it with ANT in machine A then it doesn't run in A, no chance for machine B.
the contents of my build xml is here
<code file="build.xml">
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="NetBeansApplication" default="default" basedir=".">
<description>Builds, tests, and runs the project NetBeansApplication.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="NetBeansApplication-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
<target name="-post-jar">
<jar update="true" destfile="${dist.jar}">
<zipfileset src="${libs.swing-layout.classpath}"/>
<zipfileset src="${libs.addMoney.classpath}"/>
<zipfileset src="${libs.NormalWindow.classpath}"/>
</jar>
</target>
</project>
]]>
</code>
my directory contents is here. note. I have 2 packages "cgwindow2" and "NormalWindow" for class libraries and my main application is "CherryGame". The game is "game.jar" in the CherryGame folder.
<listing foldername="CherryGame">
D:\src\java\CherryGame\build.xml
D:\src\java\CherryGame\BW.txt
D:\src\java\CherryGame\config.txt
D:\src\java\CherryGame\config.txt.lin
D:\src\java\CherryGame\flopsfile.txt
D:\src\java\CherryGame\game.jar
D:\src\java\CherryGame\LWMoneyfile.txt
D:\src\java\CherryGame\mfile.txt
D:\src\java\CherryGame\mfile2.txt
D:\src\java\CherryGame\mfile3.txt
D:\src\java\CherryGame\TotalRollsTillBigWin.txt
D:\src\java\CherryGame\UserFile.txt
D:\src\java\CherryGame\build\classes\cherrygame\addMoneyFrame.class
D:\src\java\CherryGame\build\classes\cherrygame\addMoneyPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow$1.class
D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\cherryGameBackPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\cherryWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\customBorderCherryGame.class
D:\src\java\CherryGame\build\classes\cherrygame\FixedGlassPane.class
D:\src\java\CherryGame\build\classes\cherrygame\global.class
D:\src\java\CherryGame\build\classes\cherrygame\helpPanelOne.class
D:\src\java\CherryGame\build\classes\cherrygame\imagesPanel.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow2.class
D:\src\java\CherryGame\build\classes\cherrygame\messageWindow3.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$1.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$10.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$11.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$12.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$13.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$14.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$15.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$16.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$17.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$18.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$19.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$2.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$20.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$21.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$22.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$23.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$24.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$25.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$26.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$27.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$1.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$2.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$29.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$3.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$30.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$31.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$32.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$33.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$34.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$35.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$36.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$37.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$38.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$39.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$4.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$40.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$41.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$42.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$43.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$44.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$45.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$46.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$5.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$6.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$7.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$8.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$9.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$MyTask.class
D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage2.class
D:\src\java\CherryGame\build\classes\cherrygame\panelMessage3.class
D:\src\java\CherryGame\build\classes\lpt\LPT.class
D:\src\java\CherryGame\build\classes\lpt\events\Events.class
D:\src\java\CherryGame\build\classes\lpt\events\LPTEvent.class
D:\src\java\CherryGame\build\classes\lpt\events\LPTEventListener.class
D:\src\java\CherryGame\build\classes\lpt\ieee1284\PPParallelPort.class
D:\src\java\CherryGame\build\classes\netbeansapplication\customBorder.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$1.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$10.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$11.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$12.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$13.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$14.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$2.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$3.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$4.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$5.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$6.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$7.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$8.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$9.class
D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication.class
D:\src\java\CherryGame\dist\NetBeansApplication.jar
D:\src\java\CherryGame\dist\javadoc\package-list
D:\src\java\CherryGame\dist\javadoc\stylesheet.css
D:\src\java\CherryGame\dist\javadoc\resources\inherit.gif
D:\src\java\CherryGame\nbproject\build-impl.xml
D:\src\java\CherryGame\nbproject\genfiles.properties
D:\src\java\CherryGame\nbproject\project.properties
D:\src\java\CherryGame\nbproject\project.xml
D:\src\java\CherryGame\nbproject\private\private.properties
D:\src\java\CherryGame\nbproject\private\private.xml
D:\src\java\CherryGame\src\customBorder.java
D:\src\java\CherryGame\src\nbApplication.form
D:\src\java\CherryGame\src\nbApplication.java
D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.form
D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.java
D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.form
D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.java
D:\src\java\CherryGame\src\cherrygame\cardsPanel.java
D:\src\java\CherryGame\src\cherrygame\cardsWindow.form
D:\src\java\CherryGame\src\cherrygame\cardsWindow.java
D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.form
D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.java
D:\src\java\CherryGame\src\cherrygame\cherryWindow.java
D:\src\java\CherryGame\src\cherrygame\customBorderCherryGame.java
D:\src\java\CherryGame\src\cherrygame\global.java
D:\src\java\CherryGame\src\cherrygame\helpPanelOne.form
D:\src\java\CherryGame\src\cherrygame\helpPanelOne.java
D:\src\java\CherryGame\src\cherrygame\imagesPanel.java
D:\src\java\CherryGame\src\cherrygame\messageWindow.form
D:\src\java\CherryGame\src\cherrygame\messageWindow.java
D:\src\java\CherryGame\src\cherrygame\messageWindow2.form
D:\src\java\CherryGame\src\cherrygame\messageWindow2.java
D:\src\java\CherryGame\src\cherrygame\messageWindow3.form
D:\src\java\CherryGame\src\cherrygame\messageWindow3.java
D:\src\java\CherryGame\src\cherrygame\nbCherryGame.form
D:\src\java\CherryGame\src\cherrygame\nbCherryGame.java
D:\src\java\CherryGame\src\cherrygame\panelMessage.form
D:\src\java\CherryGame\src\cherrygame\panelMessage.java
D:\src\java\CherryGame\src\cherrygame\panelMessage2.form
D:\src\java\CherryGame\src\cherrygame\panelMessage2.java
D:\src\java\CherryGame\src\cherrygame\panelMessage3.form
D:\src\java\CherryGame\src\cherrygame\panelMessage3.java
D:\src\java\CherryGame\src\lpt\LPT.java
D:\src\java\CherryGame\src\lpt\events\Events.java
D:\src\java\CherryGame\src\lpt\events\LPTEvent.java
D:\src\java\CherryGame\src\lpt\events\LPTEventListener.java
D:\src\java\CherryGame\src\lpt\ieee1284\PPParallelPort.java
</listing>
<listing foldername="NormalWindow">
D:\src\java\NormalWindow\build.xml
D:\src\java\NormalWindow\manifest.mf
D:\src\java\NormalWindow\build\classes\normalwindow\global.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$1.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$10.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$11.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$12.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$13.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$14.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$15.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$16.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$17.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$2.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$3.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$4.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$5.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$6.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$7.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$8.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$9.class
D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$1.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$2.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$3.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$4.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$5.class
D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog.class
D:\src\java\NormalWindow\dist\NormalWindow.jar
D:\src\java\NormalWindow\dist\README.TXT
D:\src\java\NormalWindow\dist\_normalwindow.jar
D:\src\java\NormalWindow\dist\lib\swing-layout-1.0.jar
D:\src\java\NormalWindow\nbproject\build-impl.xml
D:\src\java\NormalWindow\nbproject\genfiles.properties
D:\src\java\NormalWindow\nbproject\project.properties
D:\src\java\NormalWindow\nbproject\project.xml
D:\src\java\NormalWindow\nbproject\private\private.properties
D:\src\java\NormalWindow\nbproject\private\private.xml
D:\src\java\NormalWindow\src\normalwindow\global.java
D:\src\java\NormalWindow\src\normalwindow\NormalWindow.form
D:\src\java\NormalWindow\src\normalwindow\NormalWindow.java
D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.form
D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.java
</listing>
<listing foldername="cgwindow2">
D:\src\java\cgwindow2\build.xml
D:\src\java\cgwindow2\manifest.mf
D:\src\java\cgwindow2\mfile.txt
D:\src\java\cgwindow2\UserFile.txt
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyPanel.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$1.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$10.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$11.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$12.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$13.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$14.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$2.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$3.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$4.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$5.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$6.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$7.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$8.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$9.class
D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow.class
D:\src\java\cgwindow2\build\classes\addmoney\customBorderForAddMoneyWindow.class
D:\src\java\cgwindow2\build\classes\addmoney\global.class
D:\src\java\cgwindow2\dist\cgwindow2.jar
D:\src\java\cgwindow2\dist\README.TXT
D:\src\java\cgwindow2\dist\lib\swing-layout-1.0.jar
D:\src\java\cgwindow2\nbproject\build-impl.xml
D:\src\java\cgwindow2\nbproject\genfiles.properties
D:\src\java\cgwindow2\nbproject\jax-ws.xml
D:\src\java\cgwindow2\nbproject\project.properties
D:\src\java\cgwindow2\nbproject\project.xml
D:\src\java\cgwindow2\nbproject\private\private.properties
D:\src\java\cgwindow2\nbproject\private\private.xml
D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.form
D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.java
D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.form
D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.java
D:\src\java\cgwindow2\src\addmoney\customBorderForAddMoneyWindow.java
D:\src\java\cgwindow2\src\addmoney\global.java
</listing>
About my thread subject, my clients machine is a debian sarge 3.0 and when I compiled it there with ANT It says, "normalwindow" package not found. other 2 errors were due to "normalwindow".
Edited by: mokaddim on Sep 12, 2007 2:08 PMJulio.Faerman wrote:
Hello,
I am trying to run my annotation processor using ant.
I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?When -processor is not given, a service loader is used to find the annotation processors (if any). In addition to the class files of the process, to allow your processor to be found as a service, make sure you've also provided the needed META-INF data in the jar file. The general service file format is described in
http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
That said, I'd recommend setting an explicit processor path separate from your general classpath. -
Executable JAR using JDeveloper
Hi,
I created a very small Desktop Application using JDeveloper.
What I want to do is to create an executable JAR file. I mean, is there any option in this tool like the one in Eclipse. Once executable JAR is created, I must be able to run it just by double clicking the JAR file.
So, can some1 please help me with the steps ?
JDeveloper : 11.1.1.6.0For executable jar you will need to add:
Main-Class: your_package.YourClassto META-INF/MANIFEST.MF file inside jar.
I don't think that JDeveloper support custom manifest files so you can modify this content after jar creation(for example, with some zip/rar/7z tool)
Also, if your app require some additional jars, then you will need to add this line to manifest:
Class-Path: additional.jarDario -
Hi
If i created a jar utility with jar command..
after jar files is being created how can i add that particular jar utility in a program...
Did any one know please give me some tips and tricks to start...Include the JAR in your classpath, and then just reference the classes inside as normal.
ex. if the inside of your jar looks like:/...
META-INF/
com/...
wombat/...
MyClass.classthen you can just import com.wombat.MyClass; in other code. -
The dreaded "could not find the Main Class, Program will exit", how?
Hello all,
I am trying to run my .jar file and I get this error message.
I want to mention I googled and searched for it, without success: There is so many different explanations!
I tried this:
Adding some lines in a manifest.fm file...
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
X-COMMENT: Main-Class will be added automatically by build
I have Netbeans 5.5.
Also I noticed my "build.xml" file is empty" and my "manifest.fm" nearly empty. I have also added "project, main class" in the options...
Here is my "build":
{code}<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="BetaCourseworkJava3d_Final" default="default" basedir=".">
<description>Builds, tests, and runs the project BetaCourseworkJava3d_Final.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar-with-manifest: JAR building (if you are using a manifest)
-do-jar-without-manifest: JAR building (if you are not using a manifest)
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="BetaCourseworkJava3d_TestsBACKUPSUNDAY05April-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>
{code}
my Manifest:
{code}Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
X-COMMENT: Main-Class will be added automatically by build
{code}
And my whole code (although I have like 4 .JAVA files in my project):
{code}
package courseworkjava3d;
import java.awt.*;
import java.awt.event.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;
import javax.swing.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import javax.media.j3d.PositionPathInterpolator;
import javax.media.j3d.Alpha;
import javax.media.j3d.BoundingSphere;
import com.sun.j3d.utils.applet.MainFrame;
import java.applet.Applet;
import java.awt.event.WindowAdapter;
import javax.swing.Timer;
import com.sun.j3d.utils.image.*;
public class Simple3D extends JFrame implements ActionListener, KeyListener
private TransformGroup objTransxx;
private Button go = new Button("Press to start the Bouncing Ball. Press A and S to move the ball Left and Right once it started!");
private Transform3D transxx = new Transform3D();
private float height=0.0f;
private float sign = 1.0f; // aller vers le haut ou vers le bas
private Timer timer;
private float xloc=-2.25f;
public Simple3D()
setSize(800, 800);
GraphicsConfiguration graphicsConfig = SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas = new Canvas3D(graphicsConfig);
getContentPane().add("Center", canvas);
BasicUniverse universe = new BasicUniverse(canvas, 8.0f);
// Rotate the view platform by PI/4 radians about X in the BasicUniverse
TransformGroup viewTransform = universe.getViewPlatformTransform();
Transform3D transform = new Transform3D();
transform.rotX(-Math.PI / 4.0);
Transform3D currentTransform = new Transform3D();
viewTransform.getTransform(currentTransform);
transform.mul(currentTransform);
viewTransform.setTransform(transform);
// Add something to display
BranchGroup scene = createCubeGraph();
universe.addBranchGraph(scene);
/* //ultra important! comment theses lines otherwise it bugs!
//Merde
setLayout(new BorderLayout());
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D c = new Canvas3D(config); */
add("Center", canvas);
//i messed up te code, i replaced canvas c by "canvas" as i already had one!
canvas.addKeyListener(this);
timer = new Timer(75,this);
//timer.start();
Panel p =new Panel();
p.add(go);
add("North",p);
go.addActionListener(this);
go.addKeyListener(this);
// Cr�er une sc�ne simple et l�ajouetr � l�univers
//BranchGroup scene2 = createCubeGraph();
//SimpleUniverse u = new SimpleUniverse(c);
//u.getViewingPlatform().setNominalViewingTransform();
//u.addBranchGraph(scene2);
//End Merde
public BranchGroup createCubeGraph() {
BranchGroup Humanoid = new BranchGroup();
//Debut Ball REBOUND
// Create the root of the branch graph
//BranchGroup objRoot = new BranchGroup();
objTransxx = new TransformGroup();
objTransxx.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Humanoid.addChild(objTransxx);
// Cr�er une forme simple et l�ajouter au graph de sc�ne
Sphere spherex = new Sphere(0.85f);
objTransxx = new TransformGroup();
objTransxx.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
Transform3D pos1 = new Transform3D();
pos1.setTranslation(new Vector3f(-2.0f,0.0f,-2.0f));
objTransxx.setTransform(pos1);
objTransxx.addChild(spherex);
Humanoid.addChild(objTransxx);
BoundingSphere boundsx =
new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
// I messed up the colors: I have applied 2 times some colorslights to the same BranchGroup
Color3f light1Colorx = new Color3f(1.0f, 1.0f, 1.0f);
Vector3f light1Directionx = new Vector3f(4.0f, -7.0f, -12.0f);
DirectionalLight light1x
= new DirectionalLight(light1Colorx, light1Directionx);
light1x.setInfluencingBounds(boundsx);
Humanoid.addChild(light1x);
// R�gler la lumi�re ambiante
Color3f ambientColorx = new Color3f(1.0f, 1.0f, 1.0f);
AmbientLight ambientLightNodex = new AmbientLight(ambientColorx);
ambientLightNodex.setInfluencingBounds(boundsx);
Humanoid.addChild(ambientLightNodex);
// END BallRebound
// Apparence BODY
// Configurer les couleurs
Color3f blackbody = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitebody = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redbody = new Color3f(0.8f, .85f, .85f);
// Configurer la texture
//if I want it in Black and white i need to replace RGB by LUMINANCE
TextureLoader loaderbody = new TextureLoader("C:\\java3d\\body.jpg", "RGB", new Container());
Texture texturebody = loaderbody.getTexture();
texturebody.setBoundaryModeS(Texture.WRAP);
texturebody.setBoundaryModeT(Texture.WRAP);
texturebody.setBoundaryColor( new Color4f( 1.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrbody = new TextureAttributes();
texAttrbody.setTextureMode(TextureAttributes.MODULATE);
Appearance apbody = new Appearance();
apbody.setTexture(texturebody);
apbody.setTextureAttributes(texAttrbody);
//Configurer le mat�riau
apbody.setMaterial(new Material(redbody, blackbody, redbody, blackbody, 1.0f));
// Cr�er une sph�re pour y appliquer les textures
int primflagsbody = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
// End Apparence BODY
// Apparence BODYHEAD
// Configurer les couleurs
Color3f blackbodyH = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitebodyH = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redbodyH = new Color3f(0.8f, .85f, .85f);
// Configurer la texture
//if I want it in Black and white i need to replace RGB by LUMINANCE
TextureLoader loaderbodyH = new TextureLoader("C:\\java3d\\head.jpg", "RGB", new Container());
Texture texturebodyH = loaderbodyH.getTexture();
texturebodyH.setBoundaryModeS(Texture.WRAP);
texturebodyH.setBoundaryModeT(Texture.WRAP);
texturebodyH.setBoundaryColor( new Color4f( 1.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrbodyH = new TextureAttributes();
texAttrbodyH.setTextureMode(TextureAttributes.MODULATE);
Appearance apbodyH = new Appearance();
apbodyH.setTexture(texturebodyH);
apbodyH.setTextureAttributes(texAttrbodyH);
//Configurer le mat�riau
apbodyH.setMaterial(new Material(redbodyH, blackbodyH, redbodyH, blackbodyH, 1.0f));
// Cr�er une sph�re pour y appliquer les textures
int primflagsbodyH = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
// End Apparence BODY HEAD
//for the trunk c le corps
TransformGroup fortheTrunk = new TransformGroup();
//will allow to modify object wgile executing
fortheTrunk.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlpha2=new Alpha(-1,9000);
//behviour for our rotation
RotationInterpolator rotator2= new RotationInterpolator(rotationAlpha2,fortheTrunk);
// area where rotation will be
BoundingSphere bounds2=new BoundingSphere();
rotator2.setSchedulingBounds(bounds2);
fortheTrunk.addChild(rotator2);
//end of rtotation
Alpha transAlphahuman=new Alpha(-1,600);
//transform 3d trans for the interpolatipon HUMANOID
Transform3D transhumanoid=new Transform3D();
//matrix for 2positions
Point3f[] cheminhuman=new Point3f[3];
cheminhuman[0]=new Point3f(0.8f,0.0f,0.0f);
cheminhuman[1]=new Point3f(-0.8f,0.0f,0.0f);
cheminhuman[2]=new Point3f(0.8f,0.0f,0.0f);
//matrix of floats to make the dots match with timeline
float[] timePositionhuman={0.0f,0.50f,1.0f};
PositionPathInterpolator interpolhuman=new PositionPathInterpolator(transAlphahuman,fortheTrunk,transhumanoid,timePositionhuman,cheminhuman);
BoundingSphere bounds4=new BoundingSphere();
interpolhuman.setSchedulingBounds(bounds4);
fortheTrunk.addChild(interpolhuman);
//add the trunk to the branchgroup
Humanoid.addChild(fortheTrunk);
TransformGroup zeTrunk = new TransformGroup();
zeTrunk.addChild(new com.sun.j3d.utils.geometry.Box(.55f,.80f,.50f,
primflagsbody,apbody));
//t3D for the head= bouge up
Transform3D T3DHead = new Transform3D();
T3DHead.set(new Vector3f(0f,1.1f,0f));
//create a tranform group for this t3Dhead
TransformGroup fortheHead = new TransformGroup();
fortheHead.setTransform(T3DHead);
//add the box head
//fortheHead.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.20f,.10f, primflagsbody,apbody));
fortheHead.addChild(new com.sun.j3d.utils.geometry.Sphere(0.35f,primflagsbodyH,apbodyH));
/* I dont need that anymore it was for putting a flat texture on a face. I chose a sphere instead!
//transform 3D for the face
Transform3D T3DFace = new Transform3D();
T3DFace.set(new Vector3f(0f,0f,.14f));
//create a TransformGroup for this Face
TransformGroup Face = new TransformGroup();
Face.setTransform(T3DFace);
//add the child box to the face;
Face.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.20f,.2f,
primflagsbodyH,apbodyH));
//add this face to the head as a child
fortheHead.addChild(Face);
//tranform3d left arm
Transform3D T3DArmL = new Transform3D();
T3DArmL.set(new Vector3f(-0.79f,0.73f,0f));
//create Tranform Group for the leftarm
TransformGroup fortheArmL = new TransformGroup();
fortheArmL.setTransform(T3DArmL);
//add the group for upperarm
TransformGroup ArmL = new TransformGroup();
ArmL.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.14f,.10f,
primflagsbody,apbody));
fortheArmL.addChild(ArmL);
//create a transform3D for the forearmleft
Transform3D T3DForearmL = new Transform3D();
T3DForearmL.set(new Vector3f(-.51f,0f,0f));
//create the tranformgroup for the forearmleft
TransformGroup ForearmL = new TransformGroup();
ForearmL.setTransform(T3DForearmL);
//add the child box to forearm
ForearmL.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.14f,.10f,
primflagsbody,apbody));
ArmL.addChild(ForearmL);
//create transform 3d for the lefthand
Transform3D T3DHandL = new Transform3D();
T3DHandL.set(new Vector3f(-.42f,0f,0f));
//create the child tranform group for the box of the hand
TransformGroup HandL= new TransformGroup();
HandL.setTransform(T3DHandL);
//add the child hand to the forearm
ForearmL.addChild(HandL);
//create the box for the handLeft
HandL.addChild(new com.sun.j3d.utils.geometry.Box(.10f,.140f,.10f,
primflagsbody,apbody));
//Right Arm
//tranform3d right arm
Transform3D T3DArmR = new Transform3D();
T3DArmR.set(new Vector3f(0.79f,0.73f,0f));
//create Tranform Group for the right arm
TransformGroup fortheArmR = new TransformGroup();
fortheArmR.setTransform(T3DArmR);
//add the group for upperarm right
TransformGroup ArmR = new TransformGroup();
ArmR.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.14f,.10f, primflagsbody,apbody));
//com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
fortheArmR.addChild(ArmR);
//create a transform3D for the forearmright
Transform3D T3DForearmR = new Transform3D();
T3DForearmR.set(new Vector3f(.51f,0f,0f));
//create the tranformgroup for the forearmright
TransformGroup ForearmR = new TransformGroup();
ForearmR.setTransform(T3DForearmR);
//add the child box to forearmright
ForearmR.addChild(new com.sun.j3d.utils.geometry.Box(.20f,.14f,.10f, primflagsbody,apbody));
ArmR.addChild(ForearmR);
//create transform 3d for the righthand
Transform3D T3DHandR = new Transform3D();
T3DHandR.set(new Vector3f(.42f,0f,0f));
//create the child tranform group for the box of the hand
TransformGroup HandR= new TransformGroup();
HandR.setTransform(T3DHandR);
//add the child hand to the forearmright
ForearmR.addChild(HandR);
//create the box for the handright
HandR.addChild(new com.sun.j3d.utils.geometry.Box(.10f,.14f,.10f, primflagsbody,apbody));
//Left Leg
//tranform3d left leg
Transform3D T3DLegL = new Transform3D();
T3DLegL.set(new Vector3f(0.43f,-1.23f,0f));
//create Tranform Group for the leftleg
TransformGroup fortheLegL = new TransformGroup();
fortheLegL.setTransform(T3DLegL);
//add the group for uppeleg
TransformGroup LegL = new TransformGroup();
LegL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.35f,.10f, primflagsbody,apbody));
fortheLegL.addChild(LegL);
//create a transform3D for the downlegleft
Transform3D T3DDownLegL = new Transform3D();
T3DDownLegL.set(new Vector3f(0f,-.70f,0f));
//create the tranformgroup for the downegleft
TransformGroup DownLegL = new TransformGroup();
DownLegL.setTransform(T3DDownLegL);
//add the child box to downlegm
DownLegL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.25f,.10f, primflagsbody,apbody));
LegL.addChild(DownLegL);
//create transform 3d for the leftfeet
Transform3D T3DFeetL = new Transform3D();
T3DFeetL.set(new Vector3f(.0f,-.45f,0f));
//create the child tranform group for the box of thefeet
TransformGroup FeetL= new TransformGroup();
FeetL.setTransform(T3DFeetL);
//add the child hand to the downleg
DownLegL.addChild(FeetL);
//create the box for the feetLeft
FeetL.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.10f,.15f, primflagsbody,apbody));
//Right Leg
//tranform3dright leg
Transform3D T3DLegR = new Transform3D();
T3DLegR.set(new Vector3f(-0.43f,-1.23f,0f));
//create Tranform Group for the righttleg
TransformGroup fortheLegR = new TransformGroup();
fortheLegR.setTransform(T3DLegR);
//add the group for uppelegR
TransformGroup LegR = new TransformGroup();
LegR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.35f,.10f, primflagsbody,apbody));
fortheLegR.addChild(LegR);
//create a transform3D for the downlegright
Transform3D T3DDownLegR = new Transform3D();
T3DDownLegR.set(new Vector3f(0f,-.70f,0f));
//create the tranformgroup for the downegright
TransformGroup DownLegR = new TransformGroup();
DownLegR.setTransform(T3DDownLegR);
//add the child box to downlegRight
DownLegR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.25f,.10f, primflagsbody,apbody));
LegR.addChild(DownLegR);
//create transform 3d for the rightfeet
Transform3D T3DFeetR = new Transform3D();
T3DFeetR.set(new Vector3f(.0f,-.45f,0f));
//create the child tranform group for the box of thefeetright
TransformGroup FeetR= new TransformGroup();
FeetR.setTransform(T3DFeetR);
//add the child feet right to the downleg
DownLegR.addChild(FeetR);
//create the box for the feetright
FeetR.addChild(new com.sun.j3d.utils.geometry.Box(.16f,.10f,.15f, primflagsbody,apbody));
//rajoute la box zetrunk et des fils
fortheTrunk.addChild(zeTrunk);
fortheTrunk.addChild(fortheHead);
fortheTrunk.addChild(fortheArmL);
fortheTrunk.addChild(fortheArmR);
fortheTrunk.addChild(fortheLegL);
fortheTrunk.addChild(fortheLegR);
//DEBUT CUBE
//beginning of rotation
TransformGroup objSpin=new TransformGroup();
//create transform 3d for box which spin
Transform3D T3DobjSpin = new Transform3D();
T3DobjSpin.set(new Vector3f(-2.50f,.45f,0f));
//create the child tranform group for the box which spin
objSpin.setTransform(T3DobjSpin);
//will allow to modify object while executing
objSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlpha=new Alpha(-1,900);
Alpha transAlpha=new Alpha(-1,900);
//transform 3d trans for the interpolatipon
Transform3D trans=new Transform3D();
//matrix for 2positions
Point3f[] chemin=new Point3f[3];
chemin[0]=new Point3f(-2.8f,0.40f,1.0f);
chemin[1]=new Point3f(-0.8f,0.40f,1.0f);
chemin[2]=new Point3f(-2.8f,0.40f,1.0f);
//matrix of floats to make the dots match with timeline
float[] timePosition={0.0f,0.50f,1.0f};
PositionPathInterpolator interpol=new PositionPathInterpolator(transAlpha,objSpin,trans,timePosition,chemin);
BoundingSphere bounds3=new BoundingSphere();
interpol.setSchedulingBounds(bounds3);
objSpin.addChild(interpol);
//behviour for our rotation
RotationInterpolator rotator= new RotationInterpolator(rotationAlpha,objSpin);
// area where rotation will be
BoundingSphere bounds=new BoundingSphere();
rotator.setSchedulingBounds(bounds);
objSpin.addChild(rotator);
//end of rtotation
//add transform group objspin to branchgroup humanoid
Humanoid.addChild(objSpin);
//test a cube which heritate of this rotation?
objSpin.addChild(new ColorCube(0.25));
//test
//module cube + transparency
// create an ALPHA transparency apparence (invisible)
Appearance app0x=new Appearance();
app0x.setColoringAttributes(new ColoringAttributes(new Color3f(0.3f,0.2f,1.0f),ColoringAttributes.SHADE_GOURAUD));
app0x.setTransparencyAttributes(new TransparencyAttributes(TransparencyAttributes.NICEST,0.5f));//0.5f represente 50% de transparence
// create the blue sphere which rotate
Transform3D transsphere=new Transform3D();
transsphere.set(new Vector3f(0.0f, -0.1f, 0.3f));
TransformGroup TGsphere=new TransformGroup(transsphere);
TGsphere.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
objSpin.addChild(TGsphere);
//objRotatecube.addChild(TGsphere);
TGsphere.addChild( new Sphere(0.3f,app0x) );
//End Module Cube + Transparency
//END CUBE
//DEBUT WHOLE BIRD
//beginning of Rotation for Bird
TransformGroup Bird=new TransformGroup();
//will allow to modify object while executing
Bird.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
//alpha rotation time related
Alpha rotationAlphaBird=new Alpha(-1,400);
Alpha transAlphaBird=new Alpha(-1,5990);
//transform 3d trans for the interpolatipon
Transform3D transBird=new Transform3D();
//create transform 3d for the Bird
transBird.set(new Vector3f(1.90f,-.45f,0.9f));
//create the child tranform group for the Bird Box
Bird.setTransform(transBird);
//matrix for 2positions
Point3f[] cheminBird=new Point3f[3];
cheminBird[0]=new Point3f(1.95f,0.0f,-6.8f);
cheminBird[1]=new Point3f(1.95f,0.90f,-0.8f);
cheminBird[2]=new Point3f(1.95f,0.0f,5.8f);
//matrix of floats to make the dots match with timeline
float[] timePositionBird={0.00f,0.50f,1.0f};
PositionPathInterpolator interpolBird=new PositionPathInterpolator(transAlphaBird,Bird,transBird,timePosition,cheminBird);
BoundingSphere bounds3Bird=new BoundingSphere();
//BoundingSphere bounds3Bird= new BoundingSphere(new Point3d(0.0, 0.0, -50.0), 0.5);
interpolBird.setSchedulingBounds(bounds3Bird);
Bird.addChild(interpolBird);
//behviour for our rotation
RotationInterpolator rotatorBird= new RotationInterpolator(rotationAlphaBird,Bird);
// area where rotation will be
BoundingSphere boundsBird=new BoundingSphere();
rotatorBird.setSchedulingBounds(boundsBird);
Bird.addChild(rotatorBird);
//end of rotation For Bird
//add transform group objspin to branchgroup humanoid
Humanoid.addChild(Bird);
//debut test APPARENCE Wing Left
//test textures
// Configurer les couleurs
Color3f blackx = new Color3f(0.0f, 0.0f, 0.0f);
Color3f whitex = new Color3f(1.0f, 1.0f, 1.0f);
Color3f redx = new Color3f(0.7f, .75f, .75f);
// Configurer la texture
TextureLoader loaderx = new TextureLoader("C:\\java3d\\pois.jpg", "RGB", new Container());
Texture texturex = loaderx.getTexture();
texturex.setBoundaryModeS(Texture.WRAP);
texturex.setBoundaryModeT(Texture.WRAP);
texturex.setBoundaryColor( new Color4f( 0.0f, 1.0f, 0.0f, 0.0f ) );
// Configurer les attributs de la texture
// Param�tres possibles : REPLACE, BLEND ou DECAL (ici, MODULATE)
TextureAttributes texAttrx = new TextureAttributes();
texAttrx.setTextureMode(TextureAttributes.REPLACE);
Appearance apx = new Appearance();
apx.setTexture(texturex);
apx.setTextureAttributes(texAttrx);
//Configurer le mat�riau
apx.setMaterial(new Material(redx, blackx, redx, blackx, 1.0f));
int primflagsx = Primitive.GENERATE_NORMALS + Primitive.GENERATE_TEXTURE_COORDS;
//End test APPARENCE Wing Left
//test a cube which heritate of this rotation?
// Bird.addChild(new ColorCube(0.8));
//test bird body
// Bird.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.22f,.45f,
// com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
Bird.addChild(new com.sun.j3d.utils.geometry.Box(.25f,.22f,.45f, primflagsx,apx));
//test WingRightBird
//create a transform3D for the BirdWIngR
Transform3D T3DBirdWingR = new Transform3D();
T3DBirdWingR.set(new Vector3f(0.45f,.0f,-0.35f));
//create the tranformgroup for the BirdWIngR
TransformGroup BirdWingR = new TransformGroup();
BirdWingR.setTransform(T3DBirdWingR);
//add the child box to BirdWIngR
// BirdWingR.addChild(new com.sun.j3d.utils.geometry.Box(.43f,.07f,.22f,
// com.sun.j3d.utils.geometry.Box.GENERATE_NORMALS,new Appearance()));
//End test WingRightBird
////////comments/////////
//beginning of Rotating WINR
//----------------------d�but de la cr�ation de la rotation--------------------------------
TransformGroup WinRSpin=new TransformGroup();
// permet de modifier l'objet pendant l'execution
WinRSpin.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
// on cr�e un fonction de rotation au cours du temps
Alpha rotationAlphaWinRSpin=new Alpha(-1,1000);
Transform3D rot = new Transform3D();
rot.rotX((float)Math.PI/- 2.0f);
//rot.rotX(-45);
//rot.rotX((-Math.PI / 4.0)+30);
//rot.rotZ((-Math.PI / 4.0));
//rot.rotX(-Math.PI / 4.0);
//rot.rotY(-Math.PI / 4.0);
// rot.rotZ(-Math.PI / 4.0);
// rot.rotY(00);
//rot.rotZ(45);
// on cr�e un comportement qui va appliquer la rotation � l'objet voulu
// on d�finit la zone sur laquelle va s'appliquer la rotation
//RotationInterpolator rotatorWinRSpin=new RotationInterpolator(rotationAlphaWinRSpin,WinRSpin, rot, 0.50f,(float)(2.0*Math.PI));
RotationInterpolator rotatorWinRSpin=new RotationInterpolator(rotationAlphaWinRSpin,WinRSpin, rot, 25,26);
BoundingSphere boundsWinRSpin=new BoundingSphere(new Point3d((Math.PI / 4.0), 0.0, 0.0), 0.5);
// boundsWinRSpin.setCenter(new Point3d((Math.PI / 4.0),0,0));
boundsWinRSpin.setCenter(new Point3d(-10,0,0));
//boundsWinRSpin.setCenter();
//test put a t3d to a boundingsphere??
//Transform3D T3Dbounding = new Transform3D();
// T3Dbounding.set(new Vector3f(5.00f,0.0f,0.00f));
//WinRSpin.setTransform(T3Dbounding);
//end test put a t3d to a boundingsphere, not working
rotatorWinRSpin.setSchedulingBounds(boundsWinRSpin);
// test BoundingSphere of BODY BIRD rotatorWinRSpin.setSchedulingBounds(boundsBird);
WinRSpin.addChild(rotatorWinRSpin);
//----------------------End de la cr�ation de la rotation--------------------------------
BirdWingR.addChild(WinRSpin);
// on cree un cube qui h�rite de la rotation
//WinRSpin.addChild(new ColorCube(0.5));// de rayon 50 cm
WinRSpin.addChild(new com.sun.j3d.utils.geometry.Box(.43f,.07f,.22f, primflagsx,apx));
//End of Rotating WINR
//////// END comments/////////
//I commented the following, that was the TEST sinusoidal, rotation which help me understood how to rotate wingR
// -----------d�but de cr�ation de la rotation--------------------------------------------------
TransformGroup objSpinxx=new TransformGroup();
// permet de modifier l'objet pendant l'execution
objSpinxx.setCapability(TransformGroup.ALLThank you very much!
I cant believe this little comment has been so helpful!
But yes it is:
I explain, despite my efforts to find, googled it, forums, faqs, etc...
no where it mentionned the manifest.fm file is... INSIDE the .jar!
Your comment "a zip" made me attempt to open it with winrar, and I found a manifest.fm file inside!
So far I was editing the one at the "source" of my project and rebuilding it with netbeans.
I am going to try that now.
Actually.... :( no its mentionning my main class!
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b19 (Sun Microsystems Inc.)
Main-class: courseworkjava3d.Simple3D
Class-Path:
X-COMMENT: Main-Class will be added automatically by buildWell I have no problems uploading you the .jar, it is for a coursework it is not a private project or whatever:
http://www.uploading.com/files/CM2LKWYU/BetaCourseworkJava3d_Final.jar.html
Oh and I felt on your comment "dont ask us" as if I was suppose to know... i'm a beginner, I did not know that! And I tried to give you so many infos so you dont lose your time if you want to help, especially as after my own research I found many, many results for this "main class" and I tried a few solutions!
Edited by: CupofTea on Apr 13, 2008 3:28 AM -
Issue facing while opening a Canvas application in Webstart
Hi experts,
Need a help on the issue: issue was like this:
I have created a Canvas application in Swings. And It was running fine. The next day i have compiled again the code and build the class and after jar. Deployed in Tomcat.
Started the webstart and launched the application. Now If I am opening the Canvas which I have required it is giving a error called " Identifier Not found".
For this issue i tried in these ways: I kept the S.O.Ps in the initialize() method and the respective methods like extractConfigurationParameters(), jbInit().
But once the control reach to jbInit() it is not continuing.. Even i can see the S.O.P first control in the java console.
Please help me to fix it.
With Thanks
Kishorealways check in this way - your number of column count for the Jtable, tableInit(), and tableColumnconntent(). these will load at the time of convas initialisation.
Nicky :-) -
OSB 10.31 - Invalid xml error
Hello,
after updating a jar file containing a few java callouts I get the following error on a proxy service (shown in OSB console in Conflicts):
Invalid xml: Expected element 'stage@http://www.bea.com/wli/sb/pipeline/config' instead of 'stage@http://www.bea.com/wli/sb/stages/config' here in element pipeline@http://www.bea.com/wli/sb/pipeline/config
I tried exporting the proxy service and reading it's XML config. It seems ok - all stages in the pipeline have the same namespace prefixes and definitions. Also, when I compare the XML before and after JAR file update, it's identical.
This proxy service does not do any java callouts, just calls another proxy service that does. It has XOP/MTOM Support enabled (by value).I have this error too.
There was no indication as to which part of the message flow was causing the error.
So I deleted bits until the error went away.
I tracked it down to a Log stage in the Service Error Handler. No idea what was wrong. I deleted it, Saved/Activated, then re-created it, Saved/Activated.
There was nothing wrong with the stage (validated and tested ok), and I re-created it to be identical to the stage I deleted.
But the problem went away.... -
Unable to run ejbc command!!!
I am compiling my ejbs and after jarring the classes and META-INF when i run the ejbc <jarfilename> <outjarname> thit says
'ejbc' is not recognized as an internal or external command,
operable program or batch file.
how do i set the classpath and path to run the ejbc command......am using weblogic 8.1 version and jdk1.3Add the weblogic server's bin directory to your PATH. You will need to a couple of WLS jars to the CLASSPATH. There might be something in the installation/setup documentation that tells you all this. I have only used WLS 5.1 and 7.0.
-
Certificate won't verifiy per Java Console
Hi,
Any guidance would be appreciated..
When testing my web app externally after jar files load I am hanging. Here are the last lines -
Comparing certificate against Root CA certificate:
key: con.sun.rsajca.JSA_RSAPublicKey@590453 SerialNumber ba5ac94c053b92d6a7b6dfed053920d
Certificate has failed the verification with the Root CA certificates
Checking if certificate is in JPI permanent certificate store
Checking if certificate is in JPI session certificate store
Thanks,
MaryHi
I'm also having the same problem.
we are using Oracle 10g Application Server.
Did you found the solution for this problem
Please let me know if you have any solution.
Best rgds
Muthu -
Anyone successfully deployed a Creator app to Tomcat ...?
Without running into connection pool problems?
If so, could you share some insights?There are two good tutorials on this
http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/deploy_to_tomcat.html
and at
http://wiki.java.net/bin/view/People/DeployingCreatorApps
However I thought I would add something new here which how to modify the generated build-impl.xml run from inside of creator (EA2) to deploy to tomcat when hitting the green arrow button and run inside of tomcat instead of deploying to SunAppServer8. There are several nice things about this. Im developing on windows machine and deploying to tomcat 5.5.9 on linux which I have mounted via samba drive , however you could also have tomcat running locally as well.
Follow the isntructions above in the tutorials ... namely
You need to make sure the the Jdbc driver of your choice is in
$CATALINA_HOME/common/lib
And need
To put
jstl.jar standard.jar
into
$CATALINA_HOME/shared/lib
Configure the dbcp connection pool in server.xml for your application. Alternatively you can place this in the context.xml file.
Here is an example
<Context path="/yourapp" docBase="yourapp"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/schemauser" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="user" password="pass" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/schemauser?zeroDateTimeBehavior=round"/>
</Context>
And configure a datasource in your app with the same name as what you put in your server.xml file (in the above example this would be schemauser.
You will next need to modify the generated build-impl.xml to export war, copy file to $CATALINA_HOME, stop , start the web application and display browser.
In order to reload the app we need the version of Catalina ant jars in the asant classpath
Copy
catalina-ant.jar
catalina-deployer.jar
from
$CATALINA_HOME/server/lib
to
C:\Program Files\Sun\Creator2ea2\SunAppServer8\lib\ant\lib
and
C:\Program Files\Sun\Creator2ea2\ide5\ant\lib
Then restart the IDE, must restart after jars are copied.
Then copy the build-impl.xml from inside of My Documents/creator/src/nbproject to build-impl-original.xml ( to make a back up).
Next modify the build-impl.xml to add the Catalina Ant tasks
Here is the modified section
Place this in between the export.war and the run target and comment out the original run target
<!--- ORIGINAL export -->
<target name="export.war" depends="dist">
<copy file="${dist.war}" tofile="${jscreator.dest.war}"/>
</target>
<property environment="env" />
<property name="catalina.home" value="${env.CATALINA_HOME}" />
<property name="manager.url" value="http://yourserver:8080/manager" />
<property name="manager.username" value="user"/>
<property name="manager.password" value="pass"/>
<property name="app.name" value="subscriber"/>
<property name="app.path" value="/${app.name}"/>
<target name="export.war.tomcat" depends="dist">
<copy file="${dist.war}" tofile="${catalina.home}/webapps/${app.name}.war"/>
<unwar src="${catalina.home}/webapps/${app.name}.war" dest="${catalina.home}/webapps/${app.name}"/>
</target>
<!--
======================
EXECUTION SECTION
======================
-->
<taskdef name="install" classname="org.apache.catalina.ant.InstallTask"/>
<target name="install" depends="compile"
description="Install application to servlet container">
<deploy url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file:/usr/local/jakarta-tomcat/webapps/${app.path}.war"/>
</target>
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
<target name="deploy" description="Deploy Web application" depends="dist">
<deploy
url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"
localWar="file:/usr/local/jakarta-tomcat/webapps/${app.path}.war" />
</target>
<target name="undeploy" description="Undeploy Web application" >
<undeploy
url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}" />
</target>
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
<target name="reload" description="Reload application on servlet container">
<reload url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="/${app.path}"/>
</target>
<taskdef name="start" classname="org.apache.catalina.ant.StartTask"/>
<target name="start" description="Start Tomcat application">
<start url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/>
</target>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
<target name="stop" description="Stop Tomcat application">
<start url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${app.path}"/>
</target>
<target name="run-display-tomcat-browser" if="do.display.browser" depends="export.war.tomcat">
<nbbrowse url="http://yourserver:8080/${app.name}"/>
</target>
<target name="run" depends="export.war.tomcat,stop,start,run-display-tomcat-browser" description="Deploy to server and show in browser."/>
<!-- HERE IS THE MAIN TASK THAT GETS RUN WHEN YOU HIT THE RUN BUTTON-->
<!--
Original Run target COMMENT THIS OUT
<target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/>
-->
Then test by hitting the run button on your project and see what happens.
Let me tell you if your editing from a windows box and you dont have 2gb of memory its pretty nice to not have to run the app server!
R
S -
How to delete a jar file after loading image files from it
Hi,
How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
Icon icon = new ImageIcon(url);
System.out.println("icon size ? " + icon.getIconHeight());
File file = new File("c:\\a.jar");
while(file.exists())
file.delete();
try
Thread.sleep(100);
catch (InterruptedException ignored)
System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
Justin JanI am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
try
URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
URLConnection conn = url.openConnection();
conn.setDefaultUseCaches(false);
conn.setUseCaches(false);
Icon icon = new ImageIcon(url);
System.out.println("icon size ? " + icon.getIconHeight());
url.openConnection().getInputStream().close();
System.gc();
System.runFinalization();
File file = new File("c:\\a.jar");
while (file.exists())
file.delete();
try
Thread.sleep(10);
catch (InterruptedException ignored)
System.out.println("file deleted.");
catch (Throwable t)
t.printStackTrace(); -
Jar file is not working after deleting all packages from the same directory
hello
i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
Please tell me what may be the reason???
thanks in advancedhello
i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
Please tell me what may be the reason???
thanks in advanced -
Not able to access javaFx charts from a remote system after using ext. jars
We are facing following issue. Any recommendations to resolve these issues are highly appreciated.
1. Not able to access javaFx charts from a remote system (More details at the end of mail).This is high priority requirement as we have a web based reporting application and users access it over our static IP address.
We are using Java Fx charts in our web application where we built jnlp and jar files in a separate fx project and kept jar and jnlps inside our web project.
It is working fine when we did not used any external jar files and remotely it is accessible. But when we used external jars our project is running on local
system but remotely it is not working due to some path settings. We modified jnlp files where entry of jar files exists and modified the jar path as per our
project. But still it did not work.
Before using external jars inside our java fx project my jnlp looks like:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
2009/JavaFXApplication3/dist/" href="JavaFXApplication3.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
2009/JavaFXApplication3/dist/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="JavaFXApplication3.jar" main="true"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=misc.Test</argument>
</application-desc>
<update check="background">
</jnlp>
After modifying my jnlp as per my project as
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="/PiFx/FxFiles/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
<jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
</resources>
<applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
<param name="MainJavaFXScript" value="misc.MyChart">
</applet-desc>
<update check="background">
</jnlp>
After adding external jars my jnlp looks like this :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
2009/JavaFXApplication3/dist/" href="JavaFXApplication3.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="http://localhost:8083/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/F%3A/New+FX+Projects+08-12-
2009/JavaFXApplication3/dist/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="JavaFXApplication3.jar" main="true"/>
<jar href="lib/jdom.jar"/>
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=misc.Test</argument>
</application-desc>
<update check="background">
</jnlp>
I have modified the jnlp as per my project :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="/PiFx/FxFiles/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
<jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
<jar href="/PiFx/FxFiles/lib/jdom.jar"/>
</resources>
<applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
<param name="MainJavaFXScript" value="misc.MyChart">
</applet-desc>
<update check="background">
</jnlp>
where PiFx is our project NameWe have tried few things given in thread : http://forums.sun.com/thread.jspa?threadID=5401999
Now it is not able to get the external jar file only
exception: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar.
java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
exception: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar.
java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.io.IOException: Cannot find cached resource for URL: http://192.168.0.111:8086/PiFx/FxFiles/lib/jdom.jar
JavaFXApplication3.jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="/PiFx/FxFiles/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
<jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
<jar href="/PiFx/FxFiles/lib/jdom.jar" main="true" />
</resources>
<application-desc main-class="com.sun.javafx.runtime.main.Main">
<argument>MainJavaFXScript=misc.MyChart</argument>
</application-desc>
<update check="background">
</jnlp>JavaFXApplication3_browser.jnlp
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="/PiFx/FxFiles/" href="JavaFXApplication3_browser.jnlp">
<information>
<title>JavaFXApplication3</title>
<vendor>Saurabh</vendor>
<homepage href="/PiFx/FxFiles/"/>
<description>JavaFXApplication3</description>
<offline-allowed/>
<shortcut>
<desktop/>
</shortcut>
</information>
<resources>
<j2se version="1.5+"/>
<extension name="JavaFX Runtime" href="/PiFx/FxFiles/javafx-rt.jnlp"/>
<jar href="/PiFx/FxFiles/JavaFXApplication3.jar" main="true"/>
<jar href="/PiFx/FxFiles/lib/jdom.jar" main="true"/>
</resources>
<applet-desc name="JavaFXApplication3" main-class="com.sun.javafx.runtime.adapter.Applet" width="500" height="500">
<param name="MainJavaFXScript" value="misc.MyChart">
</applet-desc>
<update check="background">
</jnlp>Applet Code
javafx({
archive: "../FxFiles/JavaFXApplication3.jar",
draggable: true,
height:hgt,
width:wdt,
code: "misc.MyChart",
name: appletName,
id: appletName
}); -
Cm.jar is working even after deleting the jar from Server
Hi,
To update the environment with the new changes we had manually copied the cm.jar into the respective folders but due to some class errors Deployment was not successful,So as a matter of trial we had deleted cm.jar from the respective folders and then we had ran the initialsetup,
Strange thing what we have observed is that all the custom logic which was initially deployed through cm.jar was still exisiting in the applicationserver and are getting executed smoothly
This is the process what we have followed
Method 1:
1) Stop server
2)
Copy cm.jar to SPLBASE/etc/conf/root/WEB-INF/lib
Copy cm.jar to SPLBASE/etc/conf/XAI-APP/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/businessapp
Copy cm.jar to SPLBASE/ splapp/ standalone/lib
3) Run InitialSetup
4) Start Server
Method 2:
1) Stop server
2) Set Exploded directories to true
3) Initial Setup
4)
Copy cm.jar to SPLBASE/splapp/applications/root/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/applications /XAI-APP/WEB-INF/lib
Copy cm.jar to SPLBASE/ splapp/businessapp
Copy cm.jar to SPLBASE/ splapp/ standalone/lib
5) Run InitialSetup
6) Start Server
Method 3:
1) Cm packaging.
Even after removing cm.jar from all places manually my custom code which I deployed initially is working. I could run custom batch and custom algorithm. Very Strange. I am not sure what I missed or where application is referring to.
We want the old code to be removed permanently from server?Can you anyone help?
Thanks
shivaHi Mr Shankar,
Even if you have deleted the cm.jar file from respective location.It do exist in splapp.war file.If you will extract that file you will find the cm.jar file in /splapp/web-inf/lib/cm.jar location.So whenever you will run the initialsetup it will restore the cm.jar.This thing is happening in your case also.So delete the file from splapp.war and rebuild the war.This will solve your issue.
Hope it will work for you.
Regards
sunil sahu
Maybe you are looking for
-
GO button to execute a query once report parameters are selected.
I am familiar with the GO button depicted in chapter 10 of the 2 Day Developer manual that does not cause the report to be rendered until a user chooses a value from a select list of values. The GO button is used in conjunction with Null Value Text (
-
Oracle DB version for windows(64 bit)
Greetings, I want to install oracle on my system which has the following properties. OS:WINDOWS SERVER 2003 Enterprise Edition Service pack2(64 bit) Processor:Dual Core AMD Opteron(TM)-2.39Ghz RAM-16GB Which Oracle 10g version i need to download so t
-
Parallel Stops working, Photo Booth Not working, Video Effects Gone.
This all happened after I upgraded it to Leopard. In parallel, I keep getting error that .HDD is corrupted. Also, itunes said its file is corrupted. don't know what's hapenning
-
Installing photoshop on a new computer
I just received my shiny brand new Mac Book Pro. I currently have CS6 installed on my Imac and would like to install it on my laptop. I cannot figure out how to do so. Meaning where do I find the download and my order history in my account? Thanks
-
ORA-01991: invalid password file
I used producation backup file to restore in development side... but I get the following errors: RMAN> restore controlfile from "E:\RMAN\C-922101420-20090628-01.BCK"; Starting restore at 29-JUN-09 using target database controlfile instead of recovery