linux « Windows « Java I/O Q&A





1. Java: Looking for hack to deal with Windows file paths in Linux    stackoverflow.com

Say you have a large legacy ColdFusion on top of Java on top of Windows application. File access is done both via java.io.File and by CFFILE (which in turn also uses ...

2. in k_rem_pio2 file function is there any number which not hold carry!=0 for ih==2 case?    stackoverflow.com

I'm working on application using the math computation. For my code I need to know how to cover all paths of code of libraries I'm using. The one of not covered ...

3. Moving a file from a windows Java application to a linux box    stackoverflow.com

I'm currently doing a project that has to be run on a windows machine. The application creates a CSV file and saves it to the windows filesystem. I would like a ...

4. How to invoke the API in a DLL file by JAVA on linux platform?    stackoverflow.com

everyone! I have faced a problem, hope you can help me. We have developed a project on linux platform by JAVA, and a DLL file provides some useful API which can ...

5. I have a problem opening a file in linux, however, in windows XP doesnt ocurrs    bytes.com

Is the file path in each case correct? Remember, Windows uses \ as its separator (don't forget to escape it!) and Linux/Unix use /.

6. how to access linux machine(using telenet) file system..using java(running in windows    bytes.com

hi every one m new to this java world....and i got task to solve but i don't know how to do that........please anyone help me... i need to access linux machine ...

7. writing files in windows system from Linux    coderanch.com

Hi i am trying to upload a file from Linux System(SUSE) and store it in a share folder which is in windows system.I read the uploaded file and write it in the shared folder by normal java.io file. this works when both the systems are windows..but when i upload from a linux machine and store it in a windows machine get ...

8. writing files form Linux to Windows    coderanch.com

Hi i am trying to upload a file from Linux System(SUSE) and store it in a share folder which is in windows system.I read the uploaded file and write it in the shared folder by normal java.io file. this works when both the systems are windows..but when i upload from a linux machine and store it in a windows machine get ...

9. file.renameTo : linux v windows    coderanch.com

Can someone tell me why this works on Windows but not on Linux if renaming to a different partition : import java.io.*; public class moveFile { public static void main(String[] args) { File f = new File(args[0]); System.out.println("Moving file "+args[0]+" to "+args[1]); boolean ok = f.renameTo(new File(args[1])); System.out.println("Move file was : "+ok); } } running it on Linux with : this ...





11. Working with Java in Linux - how to execute exe files    coderanch.com

hello, i'm a beginner in using java in linux, maybe you can help me with this problem: i need to execute an exe file from java...how do i do this? for example i have an application named sga, in linux we execute this as ./sga right? how about if i want to execute it within a java program? apparently, this doesn't ...

12. File-logging program working in Windows, but not in Linux    coderanch.com

Hi, I have an application which writes every processing tasks to a file. The application is in an executable jar format. In windows, it's working perfectly and the log file is also being successfully written unto. When I deployed (copy-paste) the jar to linux, and run it by java -jar command, it still worked fine. However, the logging functionality didn't work. ...

13. Reading remote file - difference between linux and windows deployments    coderanch.com

Hi Ranchers, I am facing a problem while reading data from linux machine when app deployed in linux machine but able to read from linux when the application deployed in Windows machine. Here I am posting error prone method. I have used jsch-0.1.31.jar , commons-vfs-1.0 jars . I am getting NoSuchMethodException in former case. Could anybody suggest what should be taken ...

14. jpgs save in linux, but 0 byte files on Windows    forums.oracle.com

Hi All, Part of an open source project I'm involved with uses some code to save thumbnail and small version images of an original jpg file. This works fine on Linux but when run on Windows the images that are created are 0 byte files, the names etc are all fine, just no image in the file. Before I post any ...

16. files under linux and windows    forums.oracle.com

Hi, I have a program that works under both windows and linux. I wanted to know what is the best way for the file paths I use. What is the difference between using "/" and "java.io.File.separator"? Any more info/tips on the difference between working under windows and linux will be great. I tried searching for it online but couldn't find anything ...