Sponsored Content
Full Discussion: JDK 1.6 error - simple
Top Forums Programming JDK 1.6 error - simple Post 302478501 by shafi2all on Wednesday 8th of December 2010 05:30:02 AM
Old 12-08-2010
JDK 1.6 error - simple

Please look at below and let me know if some one has solution for this issue.

when the code is trying to import the class directly an error is displayed saying " '.' expected ".

I tires with JDK 1.5 , JDK 1.3 and JDK 1.4 , results are same.. If this is resolved with any updated version of JDK, let me the version(minor) so that i can compile the actual classes of the application.

Example programs:-
Code:
X.java: 
public class X{
}
 
Y.java:
package ypkg;
import X;
public class Y{}

Is there any way that Y imports the X class without receive the:
Code:
Y.java:3: '.' expected
import X;


Last edited by Scott; 12-08-2010 at 11:04 AM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

instfix lslpp JDK

Hi, some questions please : 1- what does do instfix ? 2- what does lslpp -l ? 3- how to verify JDK version on a UNIX server (AIX) ? Many thanks before. (2 Replies)
Discussion started by: big123456
2 Replies

2. UNIX for Dummies Questions & Answers

find jdk 1.3.1

Hello, I try to find the file jdk-1.3.1_03-fcs.rpm (pre-requisite for Oracle Applications 11.5.8) for Linux x86 but it doesn't available anywhere... Maybe here, somebody have it ? :o Rgds (1 Reply)
Discussion started by: madmat
1 Replies

3. UNIX for Dummies Questions & Answers

JDK Installation

I'm trying to install JDK (Java Development tools) and i get this: WARNING: The <SUNWj6dev> package "JDK 6.0 Dev. Tools (1.6.0)" is a prerequisite package and should be installed. WARNING: The <SUNWj6rtx> package "JDK 6.0 64-bit Runtime Env. (1.6.0)" is a prerequisite package and should be... (0 Replies)
Discussion started by: idan_cn
0 Replies

4. Shell Programming and Scripting

Script to install jdk

Hi, I need a shell script that would do silent installation of jdk on a linux machine. Can anyone help me with this? Thanx Sunny (6 Replies)
Discussion started by: eamani_sun
6 Replies

5. Solaris

error during install jdk 5.0.11 packages

hi all i tried to install jdk on solaris 10 2008 and i used these packages in installation pkgadd -d SUNWj5cfg SUNWj5dmo SUNWj5dev SUNWj5rt SUNWj5jmp SUNWj5man all was good except one (SUNWj5rt) some of the output ERROR: attribute verification of... (3 Replies)
Discussion started by: maxim42
3 Replies

6. Solaris

Jdk 1.6 Installtion

How to install the jdk 1.6 in the solaris sparc 10 64bit. Any patch is required for jdk 1.6 for solaris (2 Replies)
Discussion started by: saktiviji
2 Replies

7. Solaris

How to start tomcat with 2 jdk?

Current platform: Sun OS 5.9 Solaris isainfo -v 64-bit sparcv9 applications 32-bit sparc applications Problem: Fail to start tomcat server ps -ef | grep tomcat nothing displays... Steps: Installed jakarta-tomcat-5.0.30 Installed jdk 1.6 and set path in profile... (11 Replies)
Discussion started by: sbox
11 Replies

8. Ubuntu

JDK path

Hello, I have installed the default JDK from Software centre, but when i type whereis JDK on the terminal.. i don't see any path :mad: i need JDk to install a tool ... Hurry!!! please HELP:confused::confused: (4 Replies)
Discussion started by: paramad
4 Replies

9. Programming

Installing jdk

I just downloaded jdk, but am unsure about updating the PATH variable. What steps should I follow ? Evidently I have to/prefer to be logged in as root to install jdk on my UBUNTU 10.04 linux.BTW, this question needs to go in another forum, but out of disuse I have forgotten my root... (1 Reply)
Discussion started by: sundaresh
1 Replies

10. HP-UX

jdk

How can i see if jdk is installed or not on my system. I am on HP UX B.11.31 (3 Replies)
Discussion started by: bang_dba
3 Replies
SoReadError(3)							       Coin							    SoReadError(3)

NAME
SoReadError - The SoReadError class is used during model import operations. During model file import, this class will be used to output any error or warning messages. SYNOPSIS
#include <Inventor/errors/SoReadError.h> Inherits SoError. Public Member Functions virtual SoType getTypeId (void) const Static Public Member Functions static void setHandlerCallback (SoErrorCB *const function, void *const data) static SoErrorCB * getHandlerCallback (void) static void * getHandlerData (void) static SoType getClassTypeId (void) static void post (const SoInput *const input, const char *const format,...) static void initClass (void) Protected Member Functions virtual SoErrorCBPtr getHandler (void *&data) const Additional Inherited Members Detailed Description The SoReadError class is used during model import operations. During model file import, this class will be used to output any error or warning messages. Depending on your application, setting up your own error handler callbacks for SoReadError might be a good idea. Member Function Documentation void SoReadError::setHandlerCallback (SoErrorCB *constfunction, void *constdata) [static] This method sets the error handler callback for messages posted via this class. Note that this will not override the error/debug message handler for subclasses, these will have to be overrided by calling the subclass' setHandlerCallback() method. See also: defaultHandlerCB() Reimplemented from SoError. SoErrorCB * SoReadError::getHandlerCallback (void) [static] Returns the error handler callback for messages posted via this class. Reimplemented from SoError. void * SoReadError::getHandlerData (void) [static] This method returns the pointer used for passing data back to the callback handler method. Reimplemented from SoError. SoType SoReadError::getClassTypeId (void) [static] This static method returns the SoType for this class. See also: getTypeId() Reimplemented from SoError. SoType SoReadError::getTypeId (void) const [virtual] This method returns the SoType of a particular object instance. See also: getClassTypeId() Reimplemented from SoError. void SoReadError::post (const SoInput *constin, const char *constformat, ...) [static] Method used from import code to post error or warning messages for model files which are not 100% compliant to the format specification. The messages will be wrapped within information on line number, file offset etc. void SoReadError::initClass (void) [static] This method takes care of initializing all static data for the class. Reimplemented from SoError. SoErrorCB * SoReadError::getHandler (void *&data) const [protected], [virtual] This is just a convenience wrapper around the getHandlerCallback() and getHandlerData() methods. Reimplemented from SoError. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SoReadError(3)
All times are GMT -4. The time now is 06:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy