Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-22-2009, 05:29 PM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default java help needed.......

..........
before starting anything let me clear that i am just a beginner.....
so sorry if any of my questions are foolish enough......

well i am onto a project for my College....
Am building a TRAFFIC CONTROL and MANAGEMENT project wherein
i want 2 connect LED's and LASER's to the parallel port (printer port) of my PC....get the inputs and thereby follow a algorithm......

MY QUESTION is how can i control the port via JAVA????


i googled but i might be searching it in a wrong way......so plz people help me code this small part.....

THANX in advance....

also if u knw any better way of doing dis plz let me know........because my group members are not of any help.....and m alone 2 do it......

any kind of help'll be appreciated.......

Last edited by ds_rnk; 03-22-2009 at 09:37 PM.
ds_rnk is offline  
Old 03-22-2009, 07:33 PM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: java help needed.......

Okay, first off...



Also, you'll probably want to use C for this.
__________________

Need website help? PM me!
CrazeD is offline  
Old 03-22-2009, 07:36 PM   #3 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

Default Re: java help needed.......

Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use?
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 03-22-2009, 08:29 PM   #4 (permalink)
Ryan Riot's Avatar
 
Junior Techie

Join Date: Mar 2009

Location: U S A

Posts: 55

Ryan Riot is on a distinguished road

Send a message via ICQ to Ryan Riot Send a message via AIM to Ryan Riot Send a message via Yahoo to Ryan Riot Send a message via Skype™ to Ryan Riot
Default Re: java help needed.......

Grammer Nazi!
Patrolling...

Ha.

Yeah that sounds right... Craz
Ryan Riot is offline  
Old 03-22-2009, 08:31 PM   #5 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: java help needed.......

Quote:
Originally Posted by Ryan Riot View Post
Grammer Nazi!
Patrolling...

Ha.

Yeah that sounds right... Craz
I'm a bit of a grammar nazi, yes. But I usually don't speak out.

However, spelling "that" as "dat" is just retarded.
__________________

Need website help? PM me!
CrazeD is offline  
Old 03-22-2009, 08:48 PM   #6 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

Default Re: java help needed.......

Substituting a "D" for a "TH" is just the start.

"MYT" for "MIGHT" is where I draw the line.

The code is going to be filled with comments like

//dis is where I'm checking the login password yo, ta make sho' dat **** is lagit ta quit fo' sho'!

If you can't talk/type intelligently, don't try to code intelligently... at least to the point where you want people to take you seriously.
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 03-22-2009, 09:09 PM   #7 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default

Quote:
Originally Posted by mikesgroovin View Post
Grammar aside, yes, just sounds like C
Do you want to use java because that is what you only know? only allowed to use?
No, i can do it on C.
I even foubd a bit of code in C till here


#include <dos.h>
#include <conio.h>

void main(void)
{
unsigned int far *ptraddr; // Pointer to location of Port Addresses
unsigned int address; // Address of Port
int a;
char unsigned value,result,ch;

clrscr();

start:

ptraddr=(unsigned int far *)0x00000400;
printf("\n\nEntr data 2 b insrtd in port : ");
scanf("%X",&value);

clrscr();
printf("\n\n");
for (a = 0; a < 4; a++)
{
address = *ptraddr;
if (address == 0)
printf("COM%d Not Found\n",a+1);
else
{
printf("COM%d Address:%Xh ",a+1,address);
result = inport(a);
printf("Read:%X ",result);
outport(a, value);
printf("Write:%d ",value);
result = inport(a);
printf("Read:%X\n",result);
}
*ptraddr++;
}

ch=getch();
if(ch != 'x')
goto start;
else exit();
getch();
}


but i dont knw how to proceed.......

well i can code it in both C and JAVA
but i need to give a GUI, n i feel THAT i can give a better GUI in java then in C........m i right??

Actually i have gone insane with this.......i seriously need help.....
what would be your approach if u were me?

thanks in advance.....

Quote:
Originally Posted by CrazeD View Post
Okay, first off...



Also, you'll probably want to use C for this.
Sorry bro!!!!

rather SORRY BrOTHER!!!

Actually this is my frist post.

i m new to all this thing .....anyways i'll surely refer to that grammar thing......

grammar aside.....thanks for siggestion.....

Last edited by Trotter; 03-22-2009 at 09:33 PM. Reason: Merged
ds_rnk is offline  
Old 03-22-2009, 09:21 PM   #8 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

Default Re: java help needed.......

I dont reply to many development threads because of code ownership. I've been down that road before. I still get calls from a company that I wrote code for 5 years ago from installers, on site. I'll reply to simple simple simple things like a batch file or perl. But for a "simple question" concerning code that I'll be glad to write from scratch and own, I'd rather say I can do it for you and charge you.
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 03-22-2009, 09:23 PM   #9 (permalink)
 
Newb Techie

Join Date: Mar 2009

Posts: 12

ds_rnk is on a distinguished road

Default Re: java help needed.......

Quote:
Originally Posted by mikesgroovin View Post
Substituting a "D" for a "TH" is just the start.

"MYT" for "MIGHT" is where I draw the line.

The code is going to be filled with comments like

//dis is where I'm checking the login password yo, ta make sho' dat **** is lagit ta quit fo' sho'!

If you can't talk/type intelligently, don't try to code intelligently... at least to the point where you want people to take you seriously.
Well it seems i did a big crime......

Sorry people!!!!!

Actually i had a habit of chatting, thats where i got this habit from.......OK then i'll watch out for my language from now...

keep helping because i m totally new to this thing.......
ds_rnk is offline  
Old 03-22-2009, 09:29 PM   #10 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

Default Re: java help needed.......

Think about it... seriously though.

No, you didn't commit a crime. If you want people to take you seriously, exuberate yourself as such. If you want a reply that intelligently explains how to perform a function, present your question with the same respect.
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI 9200SE vs. Linux... 95BlackGA Linux, BSD, other *nixes & Open Source Software 8 10-19-2008 01:05 AM
Updates for Java eliminate many security holes Trotter Browser & General Internet Questions 1 07-11-2008 09:54 PM
Java help needed. Thorn Programming Discussions 17 04-22-2008 05:44 PM
Help needed with java dnoch Programming Discussions 1 09-09-2007 06:43 AM
Java SCript Help NEEDED! kellee91 Browser & General Internet Questions 1 06-05-2007 12:20 PM