Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use J2ME to extract WiFi card info such as Default Gateway??

 
pat barry
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to get the default gateway that my PDA is using.

I have a batch file that will extract the Default gateway to a '.txt' file but I can't seem to get it working through pocketdos for my Dell Axim x30.

SO, another soultion may be to use Java.

Is it possible to extract network info from a WiFi card through Java??

Can Java extract network info similar to the "ipconfig" and "arp" commands that dos offers?

Cheers,
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat --

Please don't cross-post the same question to multiple forums. It just wastes other people's time.

I've deleted the two other copies of this thread for you.
 
William Frantz
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by pat barry:
Can Java extract network info similar to the "ipconfig" and "arp" commands that dos offers?


I am not familiar with the Axim x30 but the answer is probably not.

Java applications run in a sandbox that basically restricts any access to real hardware like a WiFi card. Generally speaking you can't read or write to files either. You can't even interact directly with other Java programs.

MIDlets are designed to work with the display, keypad, and remote servers. That's basically it. Newer JSRs and custom APIs on some devices allow additional capabilities like accessing a camera, serial port, Bluetooth device, GPS receivers, or media player. Those are the exception, not the rule and often times access to those capabilities are restricted in some way.

William Frantz
http://SprintDevelopers.com
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!