NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
jjdd88
Joined: 01 Oct 2010 Posts: 3
|
Posted: Fri Oct 01, 2010 12:52 am Post subject: Help needed from newbie |
|
|
Hi,
I just install NetBeans 6.8 and try to import an existing project. THere are two things I can not understand.
1) add the source code directory. and it compile failed. I found that it is because one file need to exclude. I exclude it and it compiled. but I stil lsee that file in tasks tab with lots of error next to Output, why is that?
2) I see package javax.servlet doesnot exit in tasks tab. I have javax.servlet.jar and javaee.jar and j2ee.jar in Libraries. I can see javax.servlet if I expand any of them. I also add PATH, CLASSPATH in environment. No idea why.
Thanks
Joseph |
|
| Back to top |
|
 |
Mark Wade Posted via mailing list.
|
Posted: Fri Oct 01, 2010 2:26 pm Post subject: Help needed from newbie |
|
|
On Sep 30, 2010, at 8:53 PM, jjdd88 wrote:
| Quote: | Hi,
I just install NetBeans 6.8 and try to import an existing project.
THere are two things I can not understand.
1) add the source code directory. and it compile failed. I found
that it is because one file need to exclude. I exclude it and it
compiled. but I stil lsee that file in tasks tab with lots of error
next to Output, why is that?
2) I see package javax.servlet doesnot exit in tasks tab. I have
javax.servlet.jar and javaee.jar and j2ee.jar in Libraries. I can
see javax.servlet if I expand any of them. I also add PATH,
CLASSPATH in environment. No idea why.
Thanks
Joseph
|
You need to add whichever library you found that contains
javax.servlet.jar to your project. Either right(control)-click the
Libraries node in the Projects window and select one of the "Add"
options or right(control)-click the project node and select
"Properties" then "Libraries" and click one of the "Add" buttons.
Mark Wade
address-removed |
|
| Back to top |
|
 |
jjdd88
Joined: 01 Oct 2010 Posts: 3
|
Posted: Fri Oct 01, 2010 9:34 pm Post subject: |
|
|
Thanks,
That issue resolve. I found that why I thought it so wrong. When I debug, I cannot see where I am from soruce code. I don't see the green bar to show me where I am, But later on I found that I can know where I am from Debugger Console. This unblock me but very painful.
I can set break point and it works. I just don't know it works until I found debugger console. Why something like that happen?
Thanks
Joseph |
|
| Back to top |
|
 |
jjdd88
Joined: 01 Oct 2010 Posts: 3
|
Posted: Tue Oct 05, 2010 8:38 pm Post subject: How to change GetStringUTFChars in NetBeans |
|
|
I am porting Java code from Linux to Windows and using NetBeans at Windows side.
I add debug dump after GetStringUTFChars();
I found
In Linux,
Str[0] = ‘/’
Str[1] = ‘h’
Str[2] = ‘o’
Str[3] = ‘m’
Str[4] = ‘e’
In Windows/NetBeans,
Str[0] = ‘C’
Str[1] = 0
Str[2] = ‘:’
Str[3] = 0
Str[4] = ‘/’
Str[5] = ‘0’
My question is why GetStringUTFChars behave different? How to make GetStringUTFChars return the following?
In Windows,
Str[0] = ‘C’
Str[1] = ‘:’
Str[2] = ‘/’
Str[3] = ‘S’
Str[4] = ‘V’
Thanks
Joseph |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|