• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP is not compiling showing Syntax error near 'import'

 
Greenhorn
Posts: 26
Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am upgrading my jdk from 1.4 to 1.5 and weblogic 8.0 to 10.0... when I am trying to load some jsp file it is not compiling... please help me...


atDeliveryModeDetails.jsp:7:18: Syntax error near 'import'
<%@ page import='java.util.*'%>
^---------^
atDeliveryModeDetails.jsp:8:18: Syntax error near 'import'
<%@ page import="cwh.messageretriever.*"%>
^--------------------^
atDeliveryModeDetails.jsp:9:18: Syntax error near 'import'
<%@ page import="com.polaris.orbionecore.common.log.CoreLogger;"%>
^--------------------------------------------^

My JSP is :


<%@ page import="java.util.*"%>
<%@ page import="cwh.messageretriever.*"%>
<%@ page import="com.polaris.orbionecore.common.log.CoreLogger"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


 
Barnabas Jeremiah
Greenhorn
Posts: 26
Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I myself found the error... that my jdk is 1.5 so it is not allowing semi colon in the import... after removing that it is work fine
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic