Advertisement
Advertisement
| 03.05.2008 at 02:22PM PST, ID: 23217766 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
Here is what I have tried so far:
C:\temp
myJar.jar
config.xml
C:\temp\lib
required jar files
required dll
C:\temp\resources
log4j.properties
config.xsd
C:\temp\resources\package...
resource.properties
Command Line Arguments
c:\java -classpath C:\temp;C:\temp\lib;C:\temp\resources -jar myJar.jar
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.05.2008 at 02:27PM PST, ID: 21055301 |
| 03.06.2008 at 07:28AM PST, ID: 21061062 |
1: 2: 3: 4: 5: 6: |
When I try and run the jar with the above cmd I get: Exception in thread "main" java.lang.NoClassDefFoundError:javafish/clients/opc/exception/CoInitializeException My manifest file is just this: Manifest-Version: 1.0 Main-Class: com.pcielectric.amc.AMCLabelServer |
| 03.06.2008 at 07:32AM PST, ID: 21061116 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
<?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry excluding="com/pcielectric/amc/label/AMCLabelServerWithXML.java|com/pcielectric/amc/ServerThread.java" kind="src" path="src"/> <classpathentry excluding="com/pcielectric/amc/AMCProductionLineTest.java|com/pcielectric/amc/ServerThreadTest.java" kind="src" path="test"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="lib/commons-logging-1.1.jar"/> <classpathentry kind="lib" path="lib/jdom.jar"/> <classpathentry kind="lib" path="lib/log4j-1.2.15.jar"/> <classpathentry kind="lib" path="resources"/> <classpathentry kind="lib" path="lib/filemonitor.jar"/> <classpathentry kind="lib" path="lib/jeasyopc.jar"/> <classpathentry kind="output" path="bin"/> </classpath> |
| 03.06.2008 at 08:36AM PST, ID: 21062005 |
| 03.06.2008 at 08:41AM PST, ID: 21062066 |
| 03.06.2008 at 08:45AM PST, ID: 21062127 |
| 03.06.2008 at 08:47AM PST, ID: 21062144 |
| 03.06.2008 at 09:11AM PST, ID: 21062442 |
| 03.06.2008 at 09:15AM PST, ID: 21062495 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="AMCLabeler">
<property environment="env"/>
<property name="ECLIPSE_HOME" value="../../target/eclipse"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="AMCLabeler.classpath">
<pathelement location="bin"/>
<pathelement location="lib/commons-logging-1.1.jar"/>
<pathelement location="lib/jdom.jar"/>
<pathelement location="lib/log4j-1.2.15.jar"/>
<pathelement location="resources"/>
<pathelement location="lib/filemonitor.jar"/>
<pathelement location="lib/jeasyopc.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src" excludes="**/*.launch, **/*.java"/>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<exclude name="com/pcielectric/amc/label/AMCLabelServerWithXML.java"/>
<exclude name="com/pcielectric/amc/ServerThread.java"/>
<classpath refid="AMCLabeler.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
<target name="AMCApplicatorTest">
<java classname="AMCApplicatorTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCLabelServer">
<java classname="com.pcielectric.amc.AMCLabelServer" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCLabelServerWithXML">
<java classname="com.pcielectric.amc.label.AMCLabelServerWithXML" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCLabelTest">
<java classname="com.pcielectric.amc.AMCLabelTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCOrderTest">
<java classname="com.pcielectric.amc.AMCOrderTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCPalletTest">
<java classname="com.pcielectric.amc.AMCPalletTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="AMCXMLTest">
<java classname="com.pcielectric.learning.AMCXMLTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="DateFormatTest">
<java classname="com.pcielectric.learning.DateFormatTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="FileManipTest">
<java classname="com.pcielectric.learning.FileManipTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="FormatTest">
<java classname="com.pcielectric.learning.FormatTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="JDomTest">
<java classname="com.pcielectric.learning.JDomTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="MorePrinting">
<java classname="com.pcielectric.learning.MorePrinting" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="OPCTest">
<java classname="com.pcielectric.learning.OPCTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="PrintingTest">
<java classname="com.pcielectric.learning.PrintingTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="ServerThreadTest">
<java classname="com.pcielectric.amc.ServerThreadTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="XMLTesting">
<java classname="com.pcielectric.learning.XMLTesting" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
<target name="ZebraPrinterTest">
<java classname="com.pcielectric.amc.ZebraPrinterTest" failonerror="true" fork="yes">
<classpath refid="AMCLabeler.classpath"/>
</java>
</target>
</project>
|
| 03.06.2008 at 09:51AM PST, ID: 21062887 |
| 03.06.2008 at 09:57AM PST, ID: 21062951 |
| 03.06.2008 at 11:08AM PST, ID: 21063602 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
C:\Documents and Settings\Charly\Desktop>java -jar amc.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/DataConversi
onException
Caused by: java.lang.ClassNotFoundException: org.jdom.DataConversionException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
|
| 03.06.2008 at 11:21AM PST, ID: 21063731 |
| 03.06.2008 at 11:38AM PST, ID: 21063874 |
1: 2: 3: 4: 5: |
Manifest-Version: 1.0 Class-Path: lib/commons-logging-1.1.jar lib/jdom.jar lib/log4j-1.2.15. jar lib/filemonitor.jar lib/jeasyopc.jar javafish/clients/opc javafis h/clients/opc/lang ./ Main-Class: com.pcielectric.amc.AMCLabelServer |
| 03.06.2008 at 11:48AM PST, ID: 21063998 |
| 03.06.2008 at 11:53AM PST, ID: 21064047 |
| 03.06.2008 at 12:20PM PST, ID: 21064276 |