Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

compilation error  RSS feed

 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this code correct in my servlet ???




 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried it?
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, i am getting a compilation error...

error:



C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\webapps\proj>javac
MainServlet.java
MainServlet.java:41: cannot find symbol
symbol : variable getMajorVersion
location: interface javax.servlet.ServletContext
out.println("major version"+app.getMajorVersion);
^
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the error about...?...can anyone tell me please..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at your syntax. Carefully.
 
puja dayal
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok got it..!..sorry my mistake....method returns an int value....i changed it...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!