Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2509 > unrolled thread
| Started by | "moongeegee" <moongeegee@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:39 +0000 |
| Last post | 2011-04-27 15:39 +0000 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.java.gui
include another java file "moongeegee" <moongeegee@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: include another java "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: include another java "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: include another java "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
Re: include another java "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
| From | "moongeegee" <moongeegee@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | include another java file |
| Message-ID | <1190317192.053320.309220@19g2000hsx.googlegroups.com> |
To: comp.lang.java.gui,comp.l
I use import TableTest1 in my TableDemo.java file. But I got compiling
error as below.
TableDemo.java:5: '.' expected
import TableTest1;
^
Please help.
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | Re: include another java |
| Message-ID | <i5b6f3trnt760fua8qnko02sk63ob2rnfu@4ax.com> |
| In reply to | #2509 |
To: comp.lang.java.gui,comp.l On Thu, 20 Sep 2007 19:39:52 -0000, moongeegee <moongeegee@gmail.com> wrote, quoted or indirectly quoted someone who said : >I use import TableTest1 in my TableDemo.java file. But I got compiling >error as below. > >TableDemo.java:5: '.' expected >import TableTest1; you need to post more code to make the error clear. See http://mindprod.com/jgloss/import.html http://mindprod.com/jgloss/package.html -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "tar" <tar@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | Re: include another java |
| Message-ID | <ymitzpn6g7x.fsf@blackcat.isi.edu> |
| In reply to | #2509 |
To: comp.lang.java.gui moongeegee <moongeegee@gmail.com> writes: > I use import TableTest1 in my TableDemo.java file. But I got compiling > error as below. > > TableDemo.java:5: '.' expected > import TableTest1; > ^ Import is only needed for classes defined in other Java Packages. It deals with package visibility in your file. Eliminate the import statement. -- Thomas A. Russ, USC/Information Sciences Institute --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | Re: include another java |
| Message-ID | <UNCdnfCCSKfNimnbnZ2dnUVZ_tHinZ2d@comcast.com> |
| In reply to | #2516 |
To: comp.lang.java.gui Thomas A. Russ wrote: > moongeegee <moongeegee@gmail.com> writes: > >> I use import TableTest1 in my TableDemo.java file. But I got compiling >> error as below. >> >> TableDemo.java:5: '.' expected >> import TableTest1; >> ^ > > Import is only needed for classes defined in other Java Packages [sic]. It > deals with package visibility in your file. Eliminate the import statement. The source of the compiler error was <http://java.sun.com/docs/books/jls/third_edition/html/packages.html#7.5> > It is a compile time error to import a type from the unnamed package. Arguably the error message should say so in just those words, instead of "'.' expected". -- Lew --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:39 +0000 |
| Subject | Re: include another java |
| Message-ID | <t5k8f3tdjfdrsdpis1est8e92kg271g6ld@4ax.com> |
| In reply to | #2509 |
To: comp.lang.java.gui,comp.l On Thu, 20 Sep 2007 19:39:52 -0000, moongeegee <moongeegee@gmail.com> wrote, quoted or indirectly quoted someone who said : >TableDemo.java:5: '.' expected >import TableTest1; see http://mindprod.com/jgloss/compileerrormessages.html#DOTEXPECTED -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web