Results 1 to 4 of 4
  1. #1
    JJones is offline Member
    Join Date
    May 2011
    Posts
    1
    Rep Power
    0

    Default 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.

  2. #2
    jojo is offline Member
    Join Date
    Dec 2009
    Posts
    36
    Rep Power
    0

    Default

    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.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    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.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

Similar Threads

  1. Java.util.zip FileNotFoundException
    By deredowl in forum Advanced Java
    Replies: 4
    Last Post: 05-18-2011, 09:37 AM
  2. Replies: 1
    Last Post: 04-14-2011, 05:04 AM
  3. Replies: 1
    Last Post: 04-01-2009, 07:34 PM
  4. Replies: 1
    Last Post: 01-12-2009, 08:59 AM
  5. java.io.FileNotFoundException
    By thevoice in forum New To Java
    Replies: 5
    Last Post: 06-13-2008, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •