share « Operation « Java I/O Q&A





1. How to share .java file in more than one projects?    stackoverflow.com

I am having one .java file containing two classes out of which one is public class. I am using methods of that class in more than one java projects created in ...

3. Cannot get shared printers description    coderanch.com

Hi, I need to do a print job and my code is as follows: ..... DocFlavor myFormat = DocFlavor.INPUT_STREAM.AUTOSENSE; Doc myDoc = new SimpleDoc(textStream,myFormat,null); PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(MediaSizeName.ISO_A4); aset.add(new Copies(2)); aset.add(Sides.TWO_SIDED_LONG_EDGE); PrintService[] services = PrintServiceLookup.lookupPrintServices (DocFlavor.SERVICE_FORMATTED.PRINTABLE,null); if(services.length>0){ String services.getClass().getName(); int printerIndex=0; for(int i=0; i

4. File sharing with Windoze progams    coderanch.com

Hello all, I have a weather station datalogger that records into a (binary)database. I've managed to decypher the structure of that database and are now able to read that file using a simple Java progam. The problem I'm now experiencing is that occasionally when my Java program reads that file, the datalogger wants to write at the same time, it fails ...

5. Java Shared Memory    coderanch.com

6. Writing Files to share    coderanch.com

No, i have my share folder "share" in C drive.i have full access rights to that share i was able to acess that "share" by typing //servername/Share in Run, but when i do it via java i get access denied. whereas when i use the default share of the C drive "c$" and access the "Share" it is working

8. Share appointments with outlook file    coderanch.com

I have made a meetingroom reservation system and want the user to share the appointments with the other participants in MS Outlook. 1) Which file format can I use and which is the best? *.vcs, *.ica or *.xcal or another one? 2) Does anyone know where I can learn about how to make the Outlook file format structure, i.e. some examples, ...

9. How to share files give ideas    coderanch.com





10. Upload file at shared location    coderanch.com

Access type i am not sure. Actually My program is to upload a file and then split uploaded file into small files as per logic(mostly split in to more than 1000 files) and save them at shared path. I have tried SMBFile and its behavour is unpredicatable sometimes its save 100 files on shared location and give error and sometimes its ...

11. Accessing files shared on LAN...    coderanch.com

12. case sensitiveness on samba share    coderanch.com

hi, does anyone know how to solve this case sensitive/insensitive filename problem? I only known a case insensitive filename for example "myfile.txt". Actually the file is stored as "MYFILE.txt". On windows I can open it regardless of how it is actually stored and with the getCanocialPath method I get the real filename. File file = new File("/myfile.txt"); System.out.println( file.getCanonicalPath()); // output: ...

13. API for P2P File Sharing Application    coderanch.com

14. Move file to hidden share    coderanch.com

16. File Sharing    coderanch.com





17. Identify file sharing violation    forums.oracle.com

18. Sharing variable among different file    forums.oracle.com

19. libjvm.so: cannot open shared object file    forums.oracle.com

Hi, I hope I am posting to right forums. I am trying to install tomcat on my linux box and running into an issue ?libjvm.so: cannot open shared object file: Permission denied? Here is what I have: Linux = Red Hat Linux release 9 (Shrike) SDK = java_app_platform_sdk-5_02-linux.bin Tomcat = apache-tomcat-6.0.10 I built jsvc this morning and running following command to ...

20. how we can make file share or personal    forums.oracle.com

21. libmawt.so: libXext.so.6: cannot open shared object file: No such file or?    forums.oracle.com

Have just, with a bit of a struggle, installed the combined netbeans IDE and JDK using the both at the same time *.sh in Debian Linux. Built the anagram demonstration project, and, as it suggests, tried to do: $ /home/lugo/Java/jdk1.6.0_07/bin/java -jar /home/lugo/NetBeansProjects/AnagramGame/dist/anagrams.jar Here's the output: lugo@asus:~/Java/Ide$ /home/lugo/Java/jdk1.6.0_07/bin/java -jar /home/lugo/NetBeansProjects/AnagramGame/dist/anagrams.jar -agentpath:/usr/lib Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/lugo/Java/jdk1.6.0_07/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object ...

22. Java Community file sharing    forums.oracle.com

Hey java community!!!! I was wondering if there is any sun approved java file sharing websites for people to look at on and others code and give them pointers and suggestions. Safe and secure websites i mgiht add. On things such as, Coding structure, use of methods, use of arrays and objects. If you guys can give any ideas that be ...

23. How open Desktop.getDesktop().open() shared files with white space    forums.oracle.com

Hi, I need to open a file in a shared folder that have white spaces (\\server\share folder\doc 1.rtf). If I not using a UNC path I open it, although have white spaces. The code I use is: File file = new File (path); file.toURI (); Desktop.getDesktop (). Open (file); But when I put a UNC path (\\server\share folder\doc 1.rtf) I get ...

24. Simple File Sharing    forums.oracle.com

I have written stock management software for a small company using java. The software currently only runs on a single computer. All the data is saved onto one file and everytime the data is updated the file is re-written. My next task is to allow multiple users to use the software at the same time. The company has a simple server ...

27. File sharing using java ???    forums.oracle.com

Hi everybody...!!! How can i develop a program in java that shares file between to computers across the internet??? is there any possibility in java to create such an application ??? if yes then plz guide me to the right direction. and if it is not possible in java then plz give me some useful suggestion

28. Access the share file and display it in browser    forums.oracle.com

private void getBinaryData(String urlpath,String format,ServletOutputStream outstr, HttpServletResponse resp) { String ErrorStr = null; try { resp.setContentType(getMimeType(format)); BufferedInputStream bis = null; BufferedOutputStream bos = null; try { URL url = new URL(urlpath); URLConnection urlc= url.openConnection(); int length = urlc.getContentLength(); resp.setContentLength(length); InputStream in = urlc.getInputStream(); bis = new BufferedInputStream(in); bos = new BufferedOutputStream(outstr); byte[] buff = new byte[length]; int bytesRead; while(-1 != (bytesRead ...

29. Problem in writting a shared file    forums.oracle.com

hi, I have written a program where i keep a log of certain system processes. this program is executed by the many people when requied. The log file is placed in a my home on unix system which gets mounted when the log is to be written. Now when i'm executing the program the log file is updated. but if someone ...

30. P2P File Sharing app. Help would be very appreciated.    forums.oracle.com

Hello, I'm writing a p2p application as part of something for my uni, and have encountered a problem I can't seem to find a solution for. A peer on the application sends out a query message to all active peers which returns who has the file specified. I then need the app to split the file into a specified number of ...