Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
Need Help :)
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
anitahelp
New Member
Join Date:
Mar 2008
Posts:
1
#1
Need Help :)
Mar 1 '08, 02:13 AM
import javax.swing.JOp tionPane;
ERROR: "javax/swing/JOptionPane" is either a misplaced package name or a non-existent entity.
WHY???
sukatoa
Contributor
Join Date:
Nov 2007
Posts:
539
#2
Mar 1 '08, 05:36 AM
Originally posted by
anitahelp
import javax.swing.JOp tionPane;
ERROR: "javax/swing/JOptionPane" is either a misplaced package name or a non-existent entity.
WHY???
I wonder why you got that kind of error...
can you post your code? I would like to help you...
This is really new for me...
Did you copy your javac.exe and java.exe to other folder and you try to compile it in that folder?
What have you done before you got this error?
Wondering,
Sukatoa
Comment
Post
Cancel
Laharl
Recognized Expert
Contributor
Join Date:
Sep 2007
Posts:
849
#3
Mar 1 '08, 06:33 AM
Imports can also only be at the top of a file, outside of any class definitions and after a package statement (if there is one).
Comment
Post
Cancel
sukatoa
Contributor
Join Date:
Nov 2007
Posts:
539
#4
Mar 1 '08, 06:37 AM
Originally posted by
Laharl
Imports can also only be at the top of a file, outside of any class definitions and after a package statement (if there is one).
If imports are above the package, what will happen?
sukatoa...
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#5
Mar 1 '08, 07:15 AM
Originally posted by
sukatoa
If imports are above the package, what will happen?
sukatoa...
You could try it and see for yourself what will happen ...
Comment
Post
Cancel
sukatoa
Contributor
Join Date:
Nov 2007
Posts:
539
#6
Mar 1 '08, 07:43 AM
Originally posted by
r035198x
You could try it and see for yourself what will happen ...
It was just an urgent reply,
I always try something that confuses me before i ask a specific question..
So what i did is just a follow-up question,
who knows, he may discover the secret behind the java language design...
Sukatoa...
Comment
Post
Cancel
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#7
Mar 1 '08, 08:30 AM
Originally posted by
sukatoa
who knows, he may discover the secret behind the java language design...
There are no secrets in the Java language design; language design isn't voodoo.
kind regards,
Jos
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment