Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    20
    Rep Power
    0

    Default java run time environment

    Hello,
    I am very new to java.
    I wrote a java code to capture ethernet packets and is working fine on my pc .
    (windows xp ,SE 1.6.. ).I developed the code using eclipse IDE.

    Now when i try to run the jar file created through eclipse IDE on windows 2008
    with a different run time environment ,the code gets executed but the ethernet packets are not captured....on the socket...does it have something to do with the run time environment and java version?

    I would really appreciate if someone can help..

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    i'm not sure if the packet capture tool you are using is the kind that works and looks for implementations dynamically at run time, where by the code would appear to run but fail silently if there was a required dependent jar file that was supposed to be on the class path but is missing when running out of eclipse. e.g. are you sure you have all of the 3rd party jar files and their dependency jar files in your path. ?

    A good example of this is the Java Media Framework (JMF). The Java player part seems to appear to work from user programs, but internally it depends on some codec implementation jar, which if is not there, the file cannot be decoded and no audio is output. several fists thru walls later finding the missing jar file it works.

  3. #3
    Join Date
    Apr 2010
    Posts
    20
    Rep Power
    0

    Default Windows firewall was the problem

    Thank you for the reply.Windows firewall was blocking the packets from reaching the java.It works now.

Similar Threads

  1. Replies: 3
    Last Post: 08-23-2011, 12:46 PM
  2. Java swing Application for J2EE Environment
    By saranbg2 in forum AWT / Swing
    Replies: 0
    Last Post: 12-15-2009, 10:46 AM
  3. making simple java environment
    By daanlaan in forum New To Java
    Replies: 0
    Last Post: 07-07-2009, 12:22 AM
  4. set environment variable in unix using java program
    By java_kick in forum Advanced Java
    Replies: 3
    Last Post: 03-16-2009, 12:26 PM
  5. Environment for java
    By carl in forum New To Java
    Replies: 2
    Last Post: 07-31-2007, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •