Results 1 to 4 of 4
- 05-19-2011, 03:20 PM #1
Member
- Join Date
- May 2011
- Posts
- 1
- Rep Power
- 0
java.io.FileNotFoundException: \temp\env.out
A little background. I know nothing about JAVA. I am an sysadmin that is having an issue with a program that uses JAVA. Our environment consist of user launching the app through Citrix. It pulls up a page on a web server. The user logins in, then java is launch on a different server (app server). All serevers are 2003R2. It tries to launch JAVA but it fails and says to look at console for more details. This is what I get:
LauncherApplet.launchTcR(C:\Program Files\Java\jre6\bin\javaw.exe): entering
RequirementsApplet: start getEnvironment()
RequirementsApplet: start getTempDir()
RequirementsApplet: exit getTempDir(); return = \temp
java.io.FileNotFoundException: \temp\env.out (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at com.edsplm.tc.req.client.install.RequirementsApple t.getEnvironment(RequirementsApplet.java:418)
at com.edsplm.tc.req.client.install.LauncherApplet.la unchTcR(LauncherApplet.java:1403)
at com.edsplm.tc.req.client.install.LauncherApplet.la unchTcR(LauncherApplet.java:574)
at com.edsplm.tc.req.client.install.LauncherApplet.st art(LauncherApplet.java:364)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.Exception: RequirementsApplet.getEnvironment(): java.io.FileNotFoundException: \temp\env.out (The system cannot find the path specified)
at com.edsplm.tc.req.client.install.RequirementsApple t.getEnvironment(RequirementsApplet.java:435)
at com.edsplm.tc.req.client.install.LauncherApplet.la unchTcR(LauncherApplet.java:1403)
at com.edsplm.tc.req.client.install.LauncherApplet.la unchTcR(LauncherApplet.java:574)
at com.edsplm.tc.req.client.install.LauncherApplet.st art(LauncherApplet.java:364)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
LauncherApplet.launchTcR(C:\Program Files\Java\jre6\bin\javaw.exe): exiting
LauncherApple.launchTcR(false) exiting
I look at the tmp folder and I see the file env.out and it does write to it.
The thing is when a domain admin launches the program the console show the temp directory as:
LauncherApplet.launchTcR(C:\Program Files\Java\jre6\bin\javaw.exe): entering
RequirementsApplet: start getEnvironment()
RequirementsApplet: start getTempDir()
RequirementsApplet: exit getTempDir(); return = C:\DOCUME~1\ADM~1.JJO\LOCALS~1\Temp\f
RequirementsApplet: exit getEnvironment()
I have checked the environment variables and they are correct. Users have correct permissions to thier folder. We have recently messed with GPOs and registry setting(Person is no longer with us) and dont know if that has something to do with it. Sorry if I posted in the wrong forum. Any help or advise in pointing me in the right direction is greatly appreciated.
- 05-19-2011, 05:46 PM #2
Member
- Join Date
- Dec 2009
- Posts
- 36
- Rep Power
- 0
what the problem is (i think) that the java file is executed somewhere else, so example in user/home/ instead of /user/
so the java application will search the dir like this /user/home/temp/file, instead of /user/temp/file
also if it is an applet (that is running in a webbrowsers?) it can give a "temporary" temp folder, but i'm not sure about this.
what you should do is specify the full path
so as you run it admin you get: C:\DOCUME~1\ADM~1.JJO\LOCALS~1\Temp\f
but as you execute it (in a webbrowser???), you only get "\temp"
if you can post the getTempDir()
I hope its helps but without much information about the code we can't really help much..Last edited by jojo; 05-19-2011 at 05:48 PM.
- 05-19-2011, 09:56 PM #3
Yeah, def. looks like a relative path issue - something is executing from a different directory and expected. It'll be tough to track this down without the source code of the offending app.
- 05-19-2011, 11:07 PM #4
Similar Threads
-
Java.util.zip FileNotFoundException
By deredowl in forum Advanced JavaReplies: 4Last Post: 05-18-2011, 09:37 AM -
java.io.FileNotFoundException: http://192.168.1.101:80/abc
By ethical in forum New To JavaReplies: 1Last Post: 04-14-2011, 05:04 AM -
java.io.FileNotFoundException: (No such file or directory)
By sudukrish in forum Advanced JavaReplies: 1Last Post: 04-01-2009, 07:34 PM -
Getting FileNotFoundException in my java program after running for some time
By satya_vanimireddy in forum New To JavaReplies: 1Last Post: 01-12-2009, 08:59 AM -
java.io.FileNotFoundException
By thevoice in forum New To JavaReplies: 5Last Post: 06-13-2008, 08:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks