Results 1 to 7 of 7
  1. #1
    wang46 is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default Error when run .jar in dist folder

    Hello!
    I am a beginner just starting to use java. I use comm.jar lib for comunication with serialport in PC to microcontroler. All fine when I run my code in netbeans, but after I build .jar and I run .jar in dist folder, the data that is sent to the microcontroller become error, not the same when I debug. Can someone help me?
    Last edited by wang46; 02-15-2011 at 08:28 AM.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    Can you show error?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    wang46 is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    Petr
    Can you show error?
    At first I try to transmit data byte, but when I capture with other PC, data not same. This data I have capture, try to send byte/hex 1 - FF, but this the result.
    1
    2
    3
    4
    5
    6
    7
    8
    9
    A
    B
    C
    D A
    E
    F
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    1A
    1B
    1C
    1D
    1E
    1F
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    2A
    2B
    2C
    2D
    2E
    2F
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    3A
    3B
    3C
    3D
    3E
    3F
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    4A
    4B
    4C
    4D
    4E
    4F
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    5A
    5B
    5C
    5D
    5E
    5F
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    6A
    6B
    6C
    6D
    6E
    6F
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    7A
    7B
    7C
    7D
    7E
    7F
    C2 80
    C2 81
    C2 82
    C2 83
    C2 84
    C2 85
    C2 86
    C2 87
    C2 88
    C2 89
    C2 8A
    C2 8B
    C2 8C
    C2 8D
    C2 8E
    C2 8F
    C2 90
    C2 91
    C2 92
    C2 93
    C2 94
    C2 95
    C2 96
    C2 97
    C2 98
    C2 99
    C2 9A
    C2 9B
    C2 9C
    C2 9D
    C2 9E
    C2 9F
    C2 A0
    C2 A1
    C2 A2
    C2 A3
    C2 A4
    C2 A5
    C2 A6
    C2 A7
    C2 A8
    C2 A9
    C2 AA
    C2 AB
    C2 AC
    C2 AD
    C2 AE
    C2 AF
    C2 B0
    C2 B1
    C2 B2
    C2 B3
    C2 B4
    C2 B5
    C2 B6
    C2 B7
    C2 B8
    C2 B9
    C2 BA
    C2 BB
    C2 BC
    C2 BD
    C2 BE
    C2 BF
    C3 80
    C3 81
    C3 82
    C3 83
    C3 84
    C3 85
    C3 86
    C3 87
    C3 88
    C3 89
    C3 8A
    C3 8B
    C3 8C
    C3 8D
    C3 8E
    C3 8F
    C3 90
    C3 91
    C3 92
    C3 93
    C3 94
    C3 95
    C3 96
    C3 97
    C3 98
    C3 99
    C3 9A
    C3 9B
    C3 9C
    C3 9D
    C3 9E
    C3 9F
    C3 A0
    C3 A1
    C3 A2
    C3 A3
    C3 A4
    C3 A5
    C3 A6
    C3 A7
    C3 A8
    C3 A9
    C3 AA
    C3 AB
    C3 AC
    C3 AD
    C3 AE
    C3 AF
    C3 B0
    C3 B1
    C3 B2
    C3 B3
    C3 B4
    C3 B5
    C3 B6
    C3 B7
    C3 B8
    C3 B9
    C3 BA
    C3 BB
    C3 BC
    C3 BD
    C3 BE
    C3 BF

    but that's fine, I can resolve it in my program receiver in my microcontroller. But when I try to run .jar in dist folder, data I have transmit going different. This data I have capture.

    netbeans --> .jar in dist folder
    32 --> 32
    C2 9C --> 3F
    C2 9C --> 3F
    77 --> 77
    C2 9C --> 3F
    7D --> 7D
    C2 A2 --> A2
    C2 A2 --> A2
    C2 83 --> 3F
    C2 A8 --> A8
    C2 A2 --> A2
    C2 A8 --> A8
    C2 A8 --> A8
    C2 AB --> AB
    C2 A2 --> A2
    C2 A2 --> A2
    7D --> 7D
    C2 A2 --> A2
    C2 83 --> 3F
    C2 A8 --> A8
    C3 87 --> C7
    C3 8D --> CD
    C2 9C --> 3F
    7D --> 7D
    C2 A2 --> A2
    C2 83 --> 3F
    7D --> 7D
    C2 9C --> 3F
    77 --> 77
    C2 9C --> 3F
    58 --> 58
    C2 A2 --> A2
    77 --> 77
    C2 9C --> 3F
    C2 9C --> 3F
    C2 9C --> 3F
    77 --> 77
    C2 B6 --> B6
    C2 B6 --> B6
    C2 AB --> AB
    C2 83 --> 3F
    C2 83 --> 3F
    C2 A8 --> A8
    C2 A2 --> A2
    C2 83 --> 3F
    C2 A8 --> A8
    C2 A2 --> A2
    C2 9C --> 3F
    77 --> 77
    C2 9C --> 3F
    C2 9C --> 3F

    Eranga
    How did you run the jar file? What's the command you use? What's the error you end-up with?
    I double click in file.jar. I don't use any command. that's all I know
    Last edited by wang46; 02-15-2011 at 12:19 PM.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    wang46 is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    y, I didn't. I run my program in dist folder in same computer that I build my code
    Last edited by wang46; 02-18-2011 at 07:51 PM.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm clear with what you said. What I want to know is that your jar file is executed by remaining the same folder location or did you move to a different location?

Similar Threads

  1. Lock a folder
    By nchouhan15@gmail.com in forum New To Java
    Replies: 4
    Last Post: 03-13-2012, 08:33 AM
  2. Replies: 0
    Last Post: 10-28-2010, 12:46 PM
  3. Reading In A Folder
    By SwissR in forum New To Java
    Replies: 26
    Last Post: 07-21-2010, 01:51 PM
  4. bin and lib folder
    By sdkanhere in forum New To Java
    Replies: 1
    Last Post: 10-07-2009, 04:46 PM
  5. folder cloning
    By jad in forum Advanced Java
    Replies: 1
    Last Post: 07-01-2008, 12:28 AM

Tags for this Thread

Posting Permissions

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