Click here to Skip to main content
16,005,290 members
Home / Discussions / Java
   

Java

 
AnswerRe: Airline Reservation Pin
portmansdress5-Nov-09 20:43
portmansdress5-Nov-09 20:43 
GeneralRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:11
mveRichard MacCutchan5-Nov-09 23:11 
AnswerRe: Airline Reservation Pin
Richard MacCutchan5-Nov-09 23:10
mveRichard MacCutchan5-Nov-09 23:10 
AnswerRe: Airline Reservation Pin
42774805-Nov-09 23:52
42774805-Nov-09 23:52 
Questiontools.jar Pin
Stephen Lintott3-Nov-09 19:19
Stephen Lintott3-Nov-09 19:19 
AnswerRe: tools.jar Pin
Nagy Vilmos3-Nov-09 22:26
professionalNagy Vilmos3-Nov-09 22:26 
GeneralRe: tools.jar Pin
Stephen Lintott3-Nov-09 22:56
Stephen Lintott3-Nov-09 22:56 
QuestionTroubles in launching a java application at MS windows system startup (user login) [modified] Pin
Fire-Dragon-DoL2-Nov-09 15:12
Fire-Dragon-DoL2-Nov-09 15:12 
Hi to all,this is my first post...
I've built a java program which retrive some datas from a website and organize them in a JTable... nothing too complicated

The "bigger" problem was that I need to make it start at system startup (it's a desktop application for some users)
I build a dll with JNI and created some functions to interact with registry, after that was easy to write on the system register and yes I managed to run the application at system startup.
Actually I'm using a wrapper for my jar files called "launch4j", which simply call my jar file (I don't need to wrap or something like it... just the users are more "user-friendly" with an exe file instead of a jar (I don't need a JVM check because i'm doing it at installation time, with another tool)...

However, the exe is called but I got these errors
Problemi nella creazione della GUI: null
java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.<init>(Unknown Source)
        at gui.Home.<init>(Home.java:52)
        at cittanascostauc.Main$1.run(Main.java:22)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


And if I disable the part of that integer (the problem is that is read from a file, so the problem is the file reading and not exactly the cast), so I have only the part referred to the DLL I receive this error:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no AutoSt
artChecker in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at core.AutoStartChecker.<clinit>(AutoStartChecker.java:35)
        at gui.Home.<init>(Home.java:72)
        at cittanascostauc.Main$1.run(Main.java:22)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


Actually if I manually run the exe file, everything goes fine... it's something like no dll are loaded... In fact if I disable everything about File reading and DLL Management, the GUI comes up and everything works fine (even if the user call some operations which read/write on file)

How can I resolve this problem?any suggestion?

EDIT: New discover!
I've build this batch file:
cd "C:\Documents and Settings\Administrator\Desktop"
MyWrapperForApp.exe


If I run this on system startup everything works... (yes that's not what I want) I've understood why this happen: it looks like that when I run my jar app at startup, the "dir" where it's run from it's not (currently is on my desktop) the desktop, but somewhere else (probably C:\WINDOWS\system32 ?Or where the jre is, more probably). So actually my jar file starts (infact I "arrive" inside my main function) and then I got some bugs... The solution could be simply changing the current working dir of my jar file, do someone know how to do this? It will be very appreciated a help

modified on Monday, November 2, 2009 9:33 PM

AnswerRe: Troubles in launching a java application at MS windows system startup (user login) Pin
Nagy Vilmos2-Nov-09 22:08
professionalNagy Vilmos2-Nov-09 22:08 
AnswerRe: Troubles in launching a java application at MS windows system startup (user login) Pin
42774802-Nov-09 22:44
42774802-Nov-09 22:44 
GeneralRe: Troubles in launching a java application at MS windows system startup (user login) Pin
Nagy Vilmos2-Nov-09 22:51
professionalNagy Vilmos2-Nov-09 22:51 
GeneralRe: Troubles in launching a java application at MS windows system startup (user login) Pin
42774802-Nov-09 23:07
42774802-Nov-09 23:07 
GeneralRe: Troubles in launching a java application at MS windows system startup (user login) Pin
Fire-Dragon-DoL3-Nov-09 0:38
Fire-Dragon-DoL3-Nov-09 0:38 
Questionjava server socket connection Pin
sugarandcream2-Nov-09 12:57
sugarandcream2-Nov-09 12:57 
AnswerRe: java server socket connection Pin
42774802-Nov-09 22:45
42774802-Nov-09 22:45 
Question[Message Deleted] Pin
golisarmi2-Nov-09 7:21
golisarmi2-Nov-09 7:21 
AnswerRe: online auction using java client server socket?? Pin
42774802-Nov-09 7:37
42774802-Nov-09 7:37 
GeneralRe: online auction using java client server socket?? Pin
golisarmi2-Nov-09 7:53
golisarmi2-Nov-09 7:53 
GeneralRe: online auction using java client server socket?? Pin
42774802-Nov-09 7:58
42774802-Nov-09 7:58 
GeneralRe: online auction using java client server socket?? Pin
golisarmi2-Nov-09 8:09
golisarmi2-Nov-09 8:09 
GeneralRe: online auction using java client server socket?? Pin
golisarmi3-Nov-09 12:27
golisarmi3-Nov-09 12:27 
GeneralRe: online auction using java client server socket?? Pin
Richard MacCutchan3-Nov-09 23:25
mveRichard MacCutchan3-Nov-09 23:25 
GeneralRe: online auction using java client server socket?? Pin
Nagy Vilmos4-Nov-09 0:24
professionalNagy Vilmos4-Nov-09 0:24 
GeneralRe: online auction using java client server socket?? Pin
golisarmi4-Nov-09 0:29
golisarmi4-Nov-09 0:29 
GeneralRe: online auction using java client server socket?? Pin
Richard MacCutchan4-Nov-09 2:56
mveRichard MacCutchan4-Nov-09 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.