File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Problem with assert Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem with assert" Watch "Problem with assert" New topic

Problem with assert

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I am trying to compile an application and i am always getting this error.

"assert cannot be resolved to a type"

what can be the problem
Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
Perhaps you are compiling with a java 1.3 compiler or with a newer one with option -source 1.3?
I agree. Here's the link:
subject: Problem with assert
It's not a secret anymore!