• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic