• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiler trying to compile code that doesn't exist anyone  RSS feed

 
Michael Portman
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm developing a site in Java/JSP. My main servlet is /index. I've made some heavy modifications to it and the compiler is trying to compile the old code I wrote instead of the new code. This only happens with the index.class servlet, all the other servlets and beans compile with their new code but not /index.class!

I'm developing my site the good old fashioned way by, design the JSP template in dreamweaver, and im coding my java dreamweaver too. I'm not that interested in 'auto-complete' code like eclipse, netbeans, and intelliJ offer.

And use I use command prompt to compile my java code.

I've built it all up my self and it works perfectly!

It's this naggling issue that wont go away!! I cant deploy my site till in the new code for the index.class is compiled.

Is this some sort of caching issue?

Any ideas greatly appreciated. Man thanks!!
 
Paul Clapham
Sheriff
Posts: 22832
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is it that makes you think the compiler is somehow looking at the nonexistent code? Have you eliminated other possibilities, such as that you haven't successfully deployed the result of the compilation?
 
Michael Portman
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:What is it that makes you think the compiler is somehow looking at the nonexistent code? Have you eliminated other possibilities, such as that you haven't successfully deployed the result of the compilation?


Theres no other index java files in the directory and its not been deployed yet. Doesn't matter ill go elsewhere for help. Thank anyway.
 
Dave Tolls
Ranch Foreman
Posts: 3064
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take us through this a step at a time.
Where is the project that you are compiling?
How are you compiling it (command line etc)?
Where does the compiled class file end up?
What steps do you take to deploy this and restart the server?

That's just a start.

Also, is there any old copy of the original java file around?
If so, where?
 
Michael Portman
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Tolls wrote:Take us through this a step at a time.
Where is the project that you are compiling?
How are you compiling it (command line etc)?
Where does the compiled class file end up?
What steps do you take to deploy this and restart the server?

That's just a start.

Also, is there any old copy of the original java file around?
If so, where?


it's being compiled in my web-inf/classes folder
I'm compiling using command line, i dont use the IDEs. (i think they're overly complicated)
The compiled class goes into the same folder as the source code (i know I shouldnt be doing this as its bad practice)
I compile, restart the server. It's always worked like thid for many projects up until now.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!