Can't add my class into example project

my class is in the workspace the project
tree with the same package(in code first
line is "package xxxx;"). When I instatiat it, it is not red color, it always occure
compile error: idendifier xxxx not found in the class(other class in the same pakege) xxxx.
do I need redeploy the project? but it did not compile and build.

Fred,
I am not sure about the details of the
problem you have explained below.
But here are some guidelines that may
help you figure out what you are doing wrong.
1. A Workspace can contain one or more
projects - (never any Java class files)
2. A Project can contain one or more
Java class files.
3. A project has a default "Source Root"
directory and this is used as the Root
for the source files.
4. Java requires public class names be the
same as the file name
(e.g. Class CellPhone must be saved in file
CellPhone.java)
5. Java requires the package name correspond
to directory path
(e.g. Pachage name of Acme.Video.Preview
must be stored in <Source Root>\Acme\Video\Preview )
6. The actual path to a file is the
Root Source plus the package name plus the
class name.java.
(example: Source Root = C:\JDeveloper
Package Name = MyCompany.Report.Util
Class Name = GeneratePDF
will need to be stored in:
C:\JDeveloper\MyCompany\Report\Util\GeneratePDF.java
As for various Identifiers not being found,
it is simply telling you that your project's
list of included libraries does not include
the given identifier.
If it is valid, then add the appropriate
library to the project's library list.
See Menu: Project | Project Properties.../ Add...
I hope this helps,
John@Oracle JDeveloper Team http://technet.oracle.com
null

Similar Messages

  • How to add a class in a project?

    Hello!
    i'm a beginner in developing and i don't know how to add a class in a project in Sun Java Wireless toolkit 2.5.2...
    The name of my project is essai2 and i already put a class, LogoMIDlet and now i want to put my new class ComBasique, how can i do that?
    and do you know if there is a program for bluetooth in order to connect my Nokia 6680 to another device that have a bluetooth?
    thanks a lot for your answer!
    Sophie

    how to change the class name after the project is created.In NetBeans, right click the class name either in the declaration or constructor, select Refactor --> Rename... and follow the dialog.
    You can refactor --> rename anything that is not in a guarded block. For those, there are options via the properties window.
    db

  • How can i add my components into dcomcnfg.exe?

    I have created a component a  out-process Server and  registered but I can't find it in
    dcomcnfg.exe.
    how can i add my components into dcomcnfg.exe?

    chenkuan,
    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a forum appropriate for your issue.
    John

  • Can I add extra information into logon ticket

    hi everyone:
    When I logon sap portal, the CreateTicketLogon Module will generate logon tickets.there are serveral information in the logon ticket MYSAPSSO2 cookie including SID,UserId,Login timestamp.
    My question is how can I add extra information into logon tickets. for example, I want to add more user's information like email address into logon ticket and pass to the SSO system.
    Thanks
    Elliott

    Hi,
    As far as I know there is no way of adding extra attributes to the SAP logon ticket. The logon ticket allows you to have two user names in it , so maybe if you setup a reference system and store the emailaddress as the username you can use this as a workaround.
    If you need to get the logon ticket form EP you can either
    1. Read the cookie MYSAPSSO2 from the IPortalComponentRequest
    2. Get the user from IPortalComponentRequest and call getTransientAttribute("MYSAPSSO2_STRING") (not 100% certain of the last one , will have to look it up. Of course not a public api)
    Dagfinn

  • HT204655 How can I add gps information into my pictures?

    How can I add gps information into my pictures?
    I understand Photos doens't have this feature.
    Só how could I do it with an external application. Is it possible? Can I even use iPhoto with the same library (since they share stuff) to do it?

    Photos does not support to add location information yet.
    Add the GPS before you import the photos to Photos. I hope this will change with the next release.
    You could ,for example, first import to iPhoto, add the locations, batch change the titles and captions, do all the things that are not yet supported in the new Photos, then export the photos from iPhoto and import them to Photos.
    Or use the free exiftool, if you like the Terminal.
    See:  http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#geotagging_exampl es
    To install exiftool: http://www.sno.phy.queensu.ca/%7Ephil/exiftool/install.html
    Other convenient apps are Jetphoto Studio, Geotagalog, there are many more ..
    I use Jetphoto Studio, but it is not free.

  • Can we type cast class into interface?

    Hello all,
    Can we type cast class into interface?
    If it can ,pls explain me in which suituation can we do?

    You don't need to explicitly typecast a class to an interface, if the class is implementing the interface.
    Example: List list = new ArrayList();    // Cast not required.And search on Google first. I'm sure this question would be answered by the lamest of tutorials.

  • What is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    what is difference between distribution list and share point group? Can we add distribution list into person and group column of share point list?

    there is a workaround you can try, create audience and add DL to them and deal with the audience or convert DL to groups
    https://social.technet.microsoft.com/Forums/en-US/02f0d773-8188-4d94-a448-0c04d838b0cf/distribution-lists-in-sharepoint?forum=sharepointgenerallegacy
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • How can I add advertisement code into flash game?

    hi mates,
    just want to ask about loading advertisement code!
    How do you add the advertisement code (adsense) into flash games??
    my site Funny Games have over 5k games but they are getting from others sites thus I have no original files. How can I add more code into the current files?

    Unless the games were pre-made to allow you to specify some variables in the page code or some external file, you won't be having any luck... you cannot add code to the games unless you have the source files, which you apparently don't have.

  • How can i add Custom fields into the

    Dear Experts
    We have Ecc6.0 system,
    How can i add Custom fields into the Infotype Screen(PA30),i heard that we do it by PM01 Tcode.
    But in PM01 i am unable to find the enhance infotype tab.
    How can i do it ....pls help.....
    Regards
    Sajid

    Hi,
    Do it thru the third tab : Single Screen.
    There write down the infotype number (e.g. 0022) and say generate objects.
    Regards,
    Dilek

  • How can I add an image to a project and change it at runtime?

    I'm using JBuilder6 and I thought I saw a control to add images but I can't find it. I also wanted to be able to change the control at runtime. Also how should I specify the path so it knows how to use it? I hate to hard code one in. Since this is probably gonna be ported to other OS does Java have a way around this? I was going to put the images into my project's directory. For me to be able to just include the file w/the extension do I need to put it in the src folder or will the main directory be accessible?

    To add an image, or other source file with JBuilder, you have a button call "Add to project", his icon is a folder with a green cross.
    To call the Image os independant, I sugest you to put your images in a folder "image" in your project folder. Then to call them, you could use this :
    image=new ImageIcon(AClass.class.getResource("image"+java.io.File.separator+imageName));Where AClass is a class of your project, in general, the class where you call getRessource;
    "image" is the name of the under folder where are the image in your project folder;
    imageName is a string with the name of the file witch contains the image, for exemple : "my image.gif"I hope I help you.
    JHelp.

  • How to import classes into labview project?

    Hi everyone 
    I start objected oriented program with labview, I have two sample project and I want to import their classes into my new project? is it possible to do that ? how can I import them ?
    thanks 

    You can simply add them like you would any other VI or library. I would recommend creating a virtual folder for your classes so you can keep your project organized.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How can I split a class into 2 files?

    I converted a C++ program to Java recently and it works fine, but I ran into a problem.
    One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
    I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.

    JavaIsBetterThanCPP wrote:
    There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
    But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
    There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler.

  • How can I add jar files into the namespace in code?

    My friends:
    I need to add jar files into my namespace dynamicly in my code.But the jar files might be repeated, I am not sure.so, i wonder how can I add them into my namespace, ignoring the repeated files?
    This is my code:
    URL[] urlArrayA = new URL[5];
    urlArray[0] = sample1;
    urlArray[1] = sample2;
    URL[] urlArrayB = new URL[5];
    urlArrayB[0] = sample3;
    urlArrayB[1] = sample4;
    URLClassLoader urlClassLoaderA = URLClassLoader.newInstance(urlArrayA);
    URLClassLoader urlClassLoaderB = URLClassLoader.newInstance(urlArrayB);
    how can i visit classes in urlClassLoaderA from classes in urlClassLoaderB?

    could anyone please answer the question for me ? thank you...

  • Suddenly can't add .mpg files into PE3

    Never been able to capture direct from my Sony DCR-SR210 into PE3, I've been saving to my desktop hard drive and adding the .mpgs from there without any problem, but suddenly I can't do it any more. It shows the "pending media" screen and the indexing bar on the bottom right just keeps filling and emptying over and over again. I've tried putting the files through Windows Moviemaker, but the files go in OK, I can view them, and then WMM crashes when I put the file in the timeline (this has always happened). The files play fine on Power DVD, so I guess they're OK. I'm on Windows XP. Thanks!

    I just defragged, there's still a lot of fragmented files on there tho, and I still can't import my latest video files. The problem did indeed start a couple of days ago when I pretty much ran out of space, so bought an external hard drive and shifted a lot of files from my cdrive to there. I've now got 40gb free space on the Cdrive. After the failure of my attempt to import my latest files from my new external drive, I'm not using it at all now to try to add media to my pe3 project, but still no dice! I downloaded file conversion software to see if that would solve the problem, and it does, but only with intolerable loss of quality. Any advice on how to clear up my Cdrive further? thanks for your time guys, x

  • How can I add a row into a JTable with JButton

    Hi all. I have the following code:
    package gui;
    import db.*;
    import javax.swing.table.AbstractTableModel;
    import java.util.ArrayList;
    public class FoundersTable extends AbstractTableModel{
        private static final int COLUMNS = 8;
        private String columnNames[] = {"��� ����", "���", "�������", "�������", "���������", "��������",
                "����� �� ����������", "������ �� ����, �����"};
        private ArrayList data;
        public FoundersTable(){
            data = new ArrayList();
        public int getRowCount() {
            return data.size();
        public int getColumnCount() {
            return columnNames.length;
        public String getColumnName(int colIndex) {
            return columnNames[colIndex];
        public Object getValueAt(int rowIndex, int columnIndex) {
            return ((ArrayList)data.get(rowIndex)).get(columnIndex);
        public void setValueAt(Object value, int rowIndex, int columnIndex) {
            ((ArrayList)data.get(rowIndex)).set(columnIndex, value);
            fireTableCellUpdated(rowIndex, columnIndex);
        public void addRow(ArrayList neueZeile) {
            data.add(neueZeile);
            int index = data.size() - 1;
            fireTableRowsInserted(index, index);
        public void removeRow(int index) {
            data.remove(index);
            fireTableRowsDeleted(index, index);
        public void removeAllRows() {
            data.clear();
            fireTableRowsDeleted(0, 0);
        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return true;
    }Now in my MainJFrame class I have one button for additing and one button for removing a selected row. How can I add/remove rows with this two buttons.
    Thanks

    No my question is how can I add and remove rows WITH buttons My point was the code is the same. You use the addRow(...) method. Why did you write an addRow(...) method if you aren't going to use it?
    I don't understand your problem. Do you not know how to write an ActionListener?

Maybe you are looking for

  • The Partner Bank Type of the vendor in the Purchase Order

    Hi All, A vendor has got more BanK Accounts. These, in his master data, are marked with different Partner bank type. Creating a Purchase Order, I'd like to know if is possible to specify a specific Partner bank type, obtaining it later in the invoice

  • Downgrade KDE

    I'm using KDE 4.7 but the bug in the task manager has been driving me round the bend for a few weeks now. I'd like to downgrade to KDE 4.6.5 until this is resolved. I installed the KDE meta packages and have not cleared /var/cache/pacman/pkg. Is ther

  • Computer name keeps changing by integer Name (2)

    My 2011 i7 iMac running 10.7.4, regularly changes the computer name. Always when rewaking it from sleep, the "Name" becomes "Name (2)". It claims "the name is already in use on this network". And this assertion is most certainly false. A quick search

  • AFTER UPDATING FROM 1.4.2 TO 2.0 Can't mount Volume HELP!!!!

    Hi, Guys Today I have upgraded my Xsan Controllers to 2.0 and this is what happening: I have 2 Controller With leopard 10.5.2 Server and 10.5.2 workstation There was installed Xsan 1.4.2 and all works fine I Have 1 SAN With 2 Volume splitted in 2 Xra

  • Help!  New computer transfer problems

    Someone please help!!! I have tried several times to transfer my itunes library to my new computer, using a flash drive, with no luck. I followed the instructions in the articles here and it did not work. When I open itunes, half of library is not th