Tanya - Error Hasil install dgn IzPack

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Tanya - Error Hasil install dgn IzPack

syarif_0077
Halo Master sekalian,

 Saya membuat installer javadekstop Netbeans dengan IzPack. Installer berhasil tercreate.
 Setelah diinstal dan dicoba start-client.bat  hasilnya adalah, sbb:
 D:\FnZ IntegratedDB>java -cp mfauz-desktop-main.jar;lib/* mfauz.desktop.Main
 Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/c
 ontext/ApplicationContext
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
         at java.lang.Class.getMethod0(Class.java:2685)
         at java.lang.Class.getMethod(Class.java:1620)
         at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:484)
         at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476)
 
 Caused by: java.lang.ClassNotFoundException: org.springframework.context.Applica
 tionContext
         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
         ... 6 more
 

 Adapun di build.xml adalah sbb:

 <taskdef name="IzPack"
     classname="com.izforge.izpack.ant.IzPackTask">
     <classpath>
         <fileset dir="./installer-lib">
             <include name="**/*.jar"/>
         </fileset>
     </classpath>
 </taskdef>
 <property name="base.dir"
     value="/D:/ProjectJava/mfauz-desktop-main"
     />
     
 <target name="-post-jar">
     <IzPack input="${base.dir}/installer/install-client.xml"
         output="${base.dir}/dist/FnZiDB-client-installer.jar"
         installerType="standard"
         basedir="${base.dir}"/>
     <IzPack input="${base.dir}/installer/install-server.xml"
         output="${base.dir}/dist/FnZiDB-server-installer.jar"
         installerType="standard"
         basedir="${base.dir}"/>
 </target>
 

 </project>
 

 dan di install-client.xml nya:
 

 <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
 <installation version="1.0">
     <info>
         <appname>FnZ IntegratedDB</appname>
         <appversion>1.0</appversion>
         <authors>
             <author name="S.Hidayat" email="[hidden email]"/>
         </authors>
         <url>http://EsHidayat@...</url>
     </info>
     <guiprefs width="640" height="480" resizable="yes"/>
     <locale>
         <langpack iso3="eng"/>
     </locale>
     <resources>
         <res id="LicencePanel.licence" src="installer/Licence.txt"/>
         <res id="InfoPanel.info" src="installer/Readme-client.txt"/>
     </resources>
     <panels>
         <panel classname="HelloPanel"/>
         <panel classname="InfoPanel"/>
         <panel classname="LicencePanel"/>
         <panel classname="TargetPanel"/>
         <panel classname="PacksPanel"/>
         <panel classname="InstallPanel"/>
         <panel classname="FinishPanel"/>
     </panels>
     <packs>
         <pack name="FZnDB Client" required="yes">
             <description>FZnDB Client</description>
             <file src="installer/Readme-client.txt" targetdir="$INSTALL_PATH"/>
             <file src="installer/Licence.txt" targetdir="$INSTALL_PATH"/>
             <file src="lib" targetdir="$INSTALL_PATH"/>
             <file src="dist/mfauz-desktop-main.jar" targetdir="$INSTALL_PATH"/>
             <file src="installer/start-client.bat" targetdir="$INSTALL_PATH" condition="izpack.windowsinstall"/>
             <file src="installer/start-client.sh" targetdir="$INSTALL_PATH" condition="!izpack.windowsinstall"/>
         </pack>
     </packs>
 </installation>
 

 Beberapa kali saya coba ubah pada instal-client.xml nya dan build.xml nya namun belum ketemu masalahnya.  Apakah harus memasukkan lagi satu package yang berisi class2 model, yaitu SpringHib-Model selain mfauz-main-desktop. Mohon bantuan nya dari para Master sekalian.  Terima kasih.
 Salam,
 Sarip Hidayat
 


Reply | Threaded
Open this post in threaded view
|

Bls: [netbeans-indonesia] Tanya - Error Hasil install dgn IzPack

Azlan Syah
Dear Admin,

Saya pengen berhenti berlangganan milis ini.. gimana caranya ya?
Pada Rabu, 9 April 2014 16:43, "[hidden email]" <[hidden email]> menulis:
 
 
Halo Master sekalian,

Saya membuat installer javadekstop Netbeans dengan IzPack. Installer berhasil tercreate.
Setelah diinstal dan dicoba start-client.bat  hasilnya adalah, sbb:
D:\FnZ IntegratedDB>java -cp mfauz-desktop-main.jar;lib/*
mfauz.desktop.Main
Exception in thread "main"
java.lang.NoClassDefFoundError: org/springframework/c
ontext/ApplicationContext
        at java.lang.Class.getDeclaredMethods0(Native
Method)
        at
java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
        at
java.lang.Class.getMethod0(Class.java:2685)
        at
java.lang.Class.getMethod(Class.java:1620)
        at
sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:484)
        at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476)
 
Caused by: java.lang.ClassNotFoundException:
org.springframework.context.Applica
tionContext
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at
java.security.AccessController.doPrivileged(Native Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 6 more

Adapun di build.xml adalah sbb:

<taskdef name="IzPack"
    classname="com.izforge.izpack.ant.IzPackTask">
    <classpath>
        <fileset dir="./installer-lib">
            <include name="**/*.jar"/>
        </fileset>
    </classpath>
</taskdef>
<property name="base.dir"
    value="/D:/ProjectJava/mfauz-desktop-main" 
    />
    
<target name="-post-jar">
    <IzPack input="${base.dir}/installer/install-client.xml"
        output="${base.dir}/dist/FnZiDB-client-installer.jar"
        installerType="standard"
        basedir="${base.dir}"/>
    <IzPack input="${base.dir}/installer/install-server.xml"
        output="${base.dir}/dist/FnZiDB-server-installer.jar"
        installerType="standard"
        basedir="${base.dir}"/>
</target>

</project>

dan di install-client.xml nya:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<installation version="1.0">
    <info>
        <appname>FnZ IntegratedDB</appname>
        <appversion>1.0</appversion>
        <authors>
            <author name="S.Hidayat" email="[hidden email]"/>
        </authors>
        <url>http://EsHidayat@...</url>
    </info>
    <guiprefs width="640" height="480" resizable="yes"/>
    <locale>
        <langpack iso3="eng"/>
    </locale>
    <resources>
        <res id="LicencePanel.licence" src="installer/Licence.txt"/>
        <res id="InfoPanel.info" src="installer/Readme-client.txt"/>
    </resources>
    <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="PacksPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="FinishPanel"/>
    </panels>
    <packs>
        <pack name="FZnDB Client" required="yes">
            <description>FZnDB Client</description>
            <file src="installer/Readme-client.txt" targetdir="$INSTALL_PATH"/>
            <file src="installer/Licence.txt" targetdir="$INSTALL_PATH"/>
            <file src="lib" targetdir="$INSTALL_PATH"/>
            <file src="dist/mfauz-desktop-main.jar" targetdir="$INSTALL_PATH"/>
            <file src="installer/start-client.bat" targetdir="$INSTALL_PATH" condition="izpack.windowsinstall"/>
            <file src="installer/start-client.sh" targetdir="$INSTALL_PATH" condition="!izpack.windowsinstall"/>
        </pack>
    </packs>
</installation>

Beberapa kali saya coba ubah pada instal-client.xml nya dan build.xml nya namun belum ketemu masalahnya.  Apakah harus memasukkan lagi satu package yang berisi class2 model, yaitu SpringHib-Model selain mfauz-main-desktop. Mohon bantuan nya dari para Master sekalian.  Terima kasih.
Salam,
Sarip Hidayat 

Reply | Threaded
Open this post in threaded view
|

Re: Bls: [netbeans-indonesia] Tanya - Error Hasil install dgn IzPack

syarif_0077
Selesai.

 Ternyata library spring nya yang berada di package spring-model harus disertakan.
 Terimakasih
 s.hidayat