• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic