Results 1 to 6 of 6
Thread: Running .jar as windows task
- 11-16-2012, 03:18 PM #1
Member
- Join Date
- Feb 2011
- Location
- Spain
- Posts
- 26
- Rep Power
- 0
Running .jar as windows task
HI all,
I have encountered a problem running a .jar as a windows task in Windows Server 2008.
It worked properly with WinXp but now I am getting next error with Server 2008 (I've already checked the path)
any ideas?Java Code:java.io.FileNotFoundException: C:\Windows\system32\src\view\img\logoletrasyfondo.jpg (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source) at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at com.itextpdf.text.Image.getInstance(Image.java:243) at com.itextpdf.text.Image.getInstance(Image.java:339) at facade.ventasGlobal.pdf.PdfVentasGlobalCadenas.addHeaderTable(PdfVentasGlobalCadenas.java:968) at facade.ventasGlobal.pdf.PdfVentasGlobalCadenas.generaInformePdf(PdfVentasGlobalCadenas.java:78) at facade.ventasGlobal.FacadeVentasGlobalCadenas.generaInformeVentasGlobalCadenas(FacadeVentasGlobalCadenas.java:92) at task.TaskDiaria.main(TaskDiaria.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ucware.JEXEClassLoader.run(Unknown Source) at com.ucware.JEXEClassLoader.main(Unknown Source)
- 11-16-2012, 03:21 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Running .jar as windows task
That file doesn't exist?
Please do not ask for code as refusal often offends.
- 11-16-2012, 03:27 PM #3
Member
- Join Date
- Feb 2011
- Location
- Spain
- Posts
- 26
- Rep Power
- 0
Re: Running .jar as windows task
The file exists.
If I copy the path of the file and I paste it at the file explorer, the file opens properly.
- 11-16-2012, 03:38 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Running .jar as windows task
Check the ownership and privileges.
A service doesn't have many.Please do not ask for code as refusal often offends.
- 11-16-2012, 03:55 PM #5
Member
- Join Date
- Feb 2011
- Location
- Spain
- Posts
- 26
- Rep Power
- 0
Re: Running .jar as windows task
The problem is while WinXP runs the task in the same folder as the .jar is located, Win2008Server runs the task in System32.
The user who is running the task is an admin and it has all privileges available.
I can't undestand
- 11-16-2012, 04:38 PM #6
Member
- Join Date
- Feb 2011
- Location
- Spain
- Posts
- 26
- Rep Power
- 0
Similar Threads
-
Running Jar files in Windows
By GRP in forum New To JavaReplies: 5Last Post: 08-07-2012, 09:39 AM -
whats the deal with windows 7 task scheduler?
By dhazwa in forum New To JavaReplies: 3Last Post: 07-26-2011, 10:58 AM -
running java under Windows 7
By newbie123 in forum New To JavaReplies: 3Last Post: 05-29-2010, 08:36 PM -
getting running application from task manager
By gayathri_g in forum Threads and SynchronizationReplies: 3Last Post: 09-26-2009, 06:43 PM -
How to interact with Windows Task Scheduler within Java Application
By tiburblium in forum New To JavaReplies: 0Last Post: 04-12-2009, 04:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks