• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comm Api... ARGH!  RSS feed

 
Tony Xavier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I joined a computer engineering course at my school, where we program our circuits. The problem is that the class uses turing and we have a choice of any language that has access to ports. I am more familiar with java that turing, so i downloaded comm api from sun website. I found out that i needed jdk1.1.6 (the directories where they are copied), so i downloaded and installed jdk1.1.6 and made a folder named jdk1.1.6. phew! ok, then I unzipped, and moved win32com.dll to jdk1.1.6\bin and comm.jar + javax.comm.properties in jdk1.1.6\lib directory. Then i tried running the sample that comes with it using my favorite editor.... is this where i messed up? should i have used the command line to run my stuff.
-> so i go online and read forums and all telling how to copy this file to this certain directory, so i have copied win32com.dll and comm.jar and javax.comm.properties all over the damn place (including javasoft/jreVS#/bin & lib) I HAVE HAD IT!! I CAN'T GET ONE SIMPLE CODE TO WORK!! ( i used forte 2 and ready to program (retarted but simple program), i wanted to use eclipse but i thought it would add more to the confusion of copying...) The editor sayz it can't find the damn package!!! So I GO in c:\windows\java\classes and coppy comm.jar and it's property there still nothing!!
Can anyone who knows what the problem is PLEASE PLEASE help me out? I need to program in java 'cause i don't want to learn a new language that i'll never use other than in this course, while by using java, it will enhance my programming skills further!! I need to program my parallel port. bah. I have been trying for about 3 days now to run a piece of code!!!
PLEASE? Thanks! (in advance)
Billy Gatey! (hehe...pie in face..lol)
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "Billy",
First, Welcome to JavaRanch!
Second, we don't have a lot of rules here at the ranch, but we do have our naming policy, which states that obviously fictitious names aren't allowed. Most folks here use their real names -- keeps us honest. In any event, please head over here and update your display name, pronto. Thanks, pardner!
Finally, as you may have noticed, javax.comm isn't really a supported API -- there hasn't been an update in years. That's too bad, really. There's a recent, trustworthy article that indicates it still works, however: here. The thing about JDK 1.1.6 only applies to Solaris, by the way.
There are also third-party libraries that implement javax.comm or a workalike. For example, see http://www.geocities.com/Juanga69/parport/ .
 
Tony Xavier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for having me, Ernest.
I "pronto" changed my name.
I'll give those websites you gave me, a try, i'll tell you how it worked out in order to also help others who might have the same problem. I really want to make the comm api to work with my fav editor.
Wow! Congrats on your book! It looks like it's hard-core!
D.X
P.S: Which JDK version should i use for WinXP? 1.2? 1.3?
[ February 08, 2004: Message edited by: D.X ]
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm, "D.X" isn't quite what we had in mind for a "real name". Quoth the Wheaton: "You can even use initials for the first name if you like." But not the last name. We'd like the last name to look at least vaguely like it might be someone's real name. "X" isn't a promising start. (Famous black militants and fictitious telepathic professors notwithstanding.) We'd generally like to see a vowel of some sort along the way, to make the name look like someone might be able to pronounce it. Though names like "Jeff Langr" and "Jim Yingst" do seem to test this policy to the limit.
[ February 09, 2004: Message edited by: Jim Yingst ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by D.X:

P.S: Which JDK version should i use for WinXP? 1.2? 1.3?

The current version is 1.4.2. No reason not to use the newest version available.
 
Tony Xavier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My initials are D.X! X is the letter my last name starts with! But, if you still insist, i'll give my alias name: Jason Blake. I don't wish to reveal my last name, but if Jason Blake doesn't work out, then can I use Tony.X? Tony's my nickname friends call me.
Latest JDK? Thanks. Would i be able to use my favorite editor to run code which finds the javax.comm package?
D.X
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jason Blake" would be fine. "Tony Xu" or "Tony Xavier" or "Tony Xanthos" would be fine. "Tony X" would not.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great, thanks.
Latest JDK? Thanks. Would i be able to use my favorite editor to run code which finds the javax.comm package?
I suppose that depends on what editor you're talking about. If it's Notepad, then no. But 1.4.2 has been out for some time; any modern JAva IDE should be able to handle it.
The latest release is actually the 1.5.0 beta 1. Except its not yet officially released; it's a beta. For your purposes, you're probably best off with 1.4.2 for now.
[ February 09, 2004: Message edited by: Jim Yingst ]
 
Tony Xavier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK! So i finally changed my name to the name I like which doesn't disobey any rules, and we all agree to it. Phew!
Have you ever used Eclipse? It's a java editor/compiler/and waay more functions. It's advanced. Do you think Eclipse or Java Builder would be able to automatically import javax.comm package if i install the latest jdk and install comm api correctly?
We already started to program in turing, it seems simple and it resembles pascal a bit, you can easily output to a parallel port immediately with no extra code. Right from the start at line 1, you can type: parallelput(1), that sends a signal to pin 1 of the parallel cable, but i preferr java over turing, since i can make complex programs to control my circuits better. I'll continue to try to get this damn deep-un-supported-by-sun comm api.
Tony Xavier (I actually was using Xavier for like a month at my school they believed me )
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you ever used Eclipse?
It's my primary IDE at the moment.
Do you think Eclipse or Java Builder would be able to automatically import javax.comm package if i install the latest jdk and install comm api correctly?
Sure. I've never used javax.comm myself, but I've no reason to think Eclipse can't handle it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!