Looking for Java Blogs?

October 16, 2002
java

There is a big list of about 40 Java Blogs. Click the java.blog logo:
java.blogs

1 person found this page useful, what do you think?

Comments

Looking for a list of Java Blogs I came across this post from 2002. Since the link mentioned seems to no longer be valid, I thought I would post a valid one in the comments to help the next person that stumbles this way: http://javablogs.com
Hi, I am having a problem when I run this program two or three times in a row I get the portInUseException.the isCurrentlyOwned and getCurrentOwner return "false" and "port currently not owned" respectivly. When I change the while statement to while (a<1) it lets me run it as many times as I want. If its (a<3) or any number larger then 3 it only lets me do it two or three times. Whats going on? import java.io.*; import javax.comm.ParallelPort; import javax.comm.CommPortIdentifier; import javax.comm.*; import java.util.* ; public class g { static boolean LPT_MODE_ECP=true; public g() { } public static void main(String[] args) { theMethod("LPT1"); } public static void theMethod(String name) { try { ParallelPort parallelport=null; CommPortIdentifier portID=CommPortIdentifier. getPortIdentifier(name); CommPortIdentifier iii=null; boolean ownr=portID.isCurrentlyOwned(); System.out.println(ownr); System.out.println(portID.getCurrentOwner()); parallelport=(ParallelPort)portID.open("parallelportprogram",1000); System.out.println(parallelport.getMode()); parallelport.setMode(1); ParallelPortEventListener lsnr=null; parallelport.addEventListener(lsnr); OutputStream ooo=parallelport.getOutputStream(); int a=1; g returnString=new g(); while (a <3) { a++; ooo.write(a); System.out.println(returnString.binaryConvert(a)); } parallelport.close(); } catch(java.io.IOException e) { System.out.println("IO problems"); } catch(NoSuchPortException e) { System.out.println("no such port"); } catch(PortInUseException e) { System.out.println("port in use"); } catch(UnsupportedCommOperationException e) { System.out.println("Unsupported mode"); } catch(TooManyListenersException e) { System.out.println("To many listeners"); } } public String binaryConvert(int a) { String c=""; c=Integer.toBinaryString(a); return c; } }
OOps sorry about the formatting didn't know it would do that.
OOps sorry about the formatting didn't know it would do that.
Ok I think I figured it out, sorta. Every time I output it makes a print job. Then because I don't currently have a printer hooked up(just testing the program right now) it can't complete the print job. So the real question is how do I modefy the program so that it won't form a print job every time I output? I want to bypass the printing mechanism of windows and output directly to the port.
Hi all, Here is a problem. When my run the debugger, right after the connection string statement, this error comes up. I have a struts web app and I am trying to connect to a Oracle 10 g Database. Does any one have any clue what th eproblem is. 500 Internal Server Error: java.lang.LinkageError: oracle/sql/converter/CharacterConverters at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].naming.ContextClassLoader.defineClass(ContextClassLoader.java:1170) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].naming.ContextClassLoader.findClass(ContextClassLoader.java:406) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].naming.ContextClassLoader.loadLocalClassFirst(ContextClassLoader.java:169) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].naming.ContextClassLoader.loadClass(ContextClassLoader.java) at java.lang.ClassLoader.loadClass(ClassLoader.java) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java)
Hi, Happy New Year. I am Susheela from BOB Technologies. We are looking for Java professionals and they must poccess 2to 4 yrs of experience, if instered kindly send your CV to me. My id is Susheela@bob-technologies.com
hi, nice blog thanks, http://www.interview.questions.tips.forum.net
If you're looking for a blog about java, check out this one: http://javablogging.com

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?