Eclipse RCP for linux [message #487400] |
Wed, 23 September 2009 06:20 |
Antonio Messages: 39 Registered: July 2009 |
Member |
|
|
hi guys, thanks for your help, i have this question,
i am developing a RCP whit eclipse, i want that my rcp work in windows S.O.
and in Linux S.O.
Now when i run RCP, do you know how to check the S.O. when i run RCP?
when i write this
boolean success = (new File(dirName)).mkdir();
i create i folder, in windows, this is equal for linux?
when i create a file i use this example
String Destinazione="C:\\"+"pippo.txt";
f=new File(Destinazione)
.........
do you know can i write a file in Linux?
naturally if you know and write me, website, book or other for this problem
i am very happy.
best regads
Antonio
|
|
|
Re: Eclipse RCP for linux [message #487405 is a reply to message #487400] |
Wed, 23 September 2009 07:07 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
This is standard Java and Linux knowledge (you need to understand that
Linux' (and OS-X) filesystem works differently using mountpoints, ...
and *not* drives like windows does).
But this is by no means a Eclipse RCP question so please ask at Sun
Forums and probably make yourself familiar with how Linux structures its
filesystem
Tom
Antonio De Curtis schrieb:
> hi guys, thanks for your help, i have this question,
> i am developing a RCP whit eclipse, i want that my rcp work in windows
> S.O. and in Linux S.O.
> Now when i run RCP, do you know how to check the S.O. when i run RCP?
> when i write this
> boolean success = (new File(dirName)).mkdir();
>
> i create i folder, in windows, this is equal for linux?
>
> when i create a file i use this example
>
> String Destinazione="C:\\"+"pippo.txt";
>
> f=new File(Destinazione)
>
> ........
>
> do you know can i write a file in Linux?
>
> naturally if you know and write me, website, book or other for this
> problem i am very happy.
>
> best regads
>
> Antonio
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02345 seconds