Looking for Java Blogs?
Trackbacks
Trackback Address: 84/E7F74BD0287C5FC93B159A1A43B6E1C0
Comments
On 07/27/2005 at 11:33:07 AM EDT Anonymous wrote:
1
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
On 10/13/2005 at 10:11:03 PM EDT micah wrote:
2
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; } }
On 10/13/2005 at 10:17:52 PM EDT micah wrote:
3
OOps sorry about the formatting didn't know it would do that.
On 10/13/2005 at 10:17:57 PM EDT micah wrote:
4
OOps sorry about the formatting didn't know it would do that.
On 10/13/2005 at 10:39:01 PM EDT micah wrote:
5
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.
On 11/21/2005 at 12:18:49 PM EST MO wrote:
6
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)
On 02/06/2006 at 10:54:26 PM EST susheela wrote:
7
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
On 02/01/2009 at 1:51:59 AM EST Amit wrote:
8
hi, nice blog thanks,
http://www.interview.questions.tips.forum.net
On 06/29/2009 at 2:00:33 PM EDT ppow wrote:
9
If you're looking for a blog about java, check out this one: http://javablogging.com
Post a Comment
Recent Entries
- Cache Template in Request Setting Explained
- What Version of Java is ColdFusion Using?
- ColdFusion 9 Performance Brief from Adobe
- Request Filtering in IIS 7 Howto
- J2EE Session Cookies on ColdFusion / JRun
- Hands on ColdFusion Security Training
- ColdFusion 9 Solr Vulnerability - Are you at Risk?
- FCKEditor Year 2010 Bug for Firefox 3.6 with ColdFusion
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; } }
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)
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
http://www.interview.questions.tips.forum.net




add to del.icio.us



