has anyone happened to use Sun ONE 4.0 for java?
I got a problem when generating a data file, compiling & execution are both fine, just no file is generated.
However, if execute my java file under Windows Command Promtp, it works and generates the file.
Does anyone know what might be wrong with the SUN ONE 4.0 environment? Do I need to make some configurations in the IDE?
[356 byte] By [
rogerlao] at [2007-11-25 16:47:23]

# 1
rogerlao wrote:
> I got a problem when generating a data file, compiling & execution are
> both fine, just no file is generated.
>
> However, if execute my java file under Windows Command Promtp, it works
> and generates the file.
>
> Does anyone know what might be wrong with the SUN ONE 4.0 environment?
> Do I need to make some configurations in the IDE?
>
It could be a working directory issue if you are using relative file
name for your data file. Two choices - set the user.directory property
in the VM options or use absolute file name (my preferred way).
Sreeni.
# 3
Scott Sims wrote:
> Sreeni,
>
> You mentiona setting the user.directory property in the VM options. How
> would you do this in Forte?
>
> Thanks, Scott
>
Well, I am myself new to FFJ. Anyway, I did some digging and found at
least one way to do it. This may not be the best way to do it, but
anyway, here it is.
Goto Tools|Options|Debugging and Executing|Execution Types|External
Execution and click on External Execution. In the property sheet, edit
the 'External Process' field (by clicking on the '...') and add
-Duser.dir=<your directory name>
between {library} and {classname}
that seems to do the trick. Note that you may have to quote the value of
user.dir if you have spaces and so on.
Hope that helps.
Sreeni.