Cannot import custom made java class

Hello
I wrote a java class say (Money.java) which compiled fine. When I was importing it to another class (Account.java), the folowing error message appears:
Account.java.1:'.' expected
import Money;(an errow pointing to ";")
I dont think the code is wrong, because when I cut and attach the Money class code to the front of the Account class it compiled successfully.... I am confused! I wrote the import command according to the text book as follows:
import Money;
public class Account
By the way, both the Money and Account classes are saved in the save folder... How come it wont let me import...
Looking forward for an early reply.
Thanks

In older versions of Java, it was possible to import classes from the default package using a statement like:
import Money;
This feature has been removed from Java as of version 1.5. You cannot import classes from the default package.
Note that if your other code (Account.java) is also in the default package, you do not need to import the class Money. Just remove the import statement.
If class Account is in a different package and you want to use class Money, then the only option you have is to put class Money in another package than the default (unnamed) package.

Similar Messages

  • Generation of custom syncbo java classes does not work.

    Hello
    we created some new syncbo's for MAM 3.0 in the middleware and download it's correspond meRepMeta.xml.
    Now i will generate in the NetWeaver Developer Studio the manager and syncbo classes for our new custom syncbo's. I had create a new SmartSync-Project and deliver the meRepMeta.xml file, edit the package and some other things and start the project creation process. But after this, i have only an simple MI project with web.xml, meRepMeta.xml and so on, but no generated, custom syncbo's. In the documentation i couldn't find a detailed description for the generation of syncbo java classes.
    Can anybody help me, what i do wrong.
    Tanks a lot.
    Greetings
    Andreas

    Hi Kai,
    Just note these points..
    1)Smart Sync MI Applications (JSP Runtime) generated using SP 09v of Developer Studio is MCD specific.It is generating MCD specific files.This architecture makes the applications too complex during migration.
    2)In SP 09v applications, the developers don't have to code in Smart Sync API level as most of the codes are generated by default.
    3)Applications in SP 09v of Developer Studio is following the exact MVC Architecture(We can see the seperation of models, views and controllers here).
    4)Corresponding to the mapped fields (in SyncBo level), in the BO Wrapper classes we can see implementations of corresponding getter() and setter(..) methods.The names of this methods are totally dependent upon the names of fields mapped.So if there is change in the names of fields , in the case of already generated projects , we have to explicitly rename the getter() and setter(..) methods appropriately inorder to make the changes to take effect.
    5)For adding new JSP pages, we have to add references in many files(*.view). (we have to explicitly create the corresponding controller class file , map the relationship between the controller and the corresponding JSP file).
    refer this blog also..
    /people/kishor.gopinathan/blog/2006/05/29/smart-sync-application-development-using-sp-09v-of-developer-studio
    <<
    have to write the acces classes, mentioned in the MDK, manually for every new SyncBO I want to use?
    >>
         For that , we can write a generic method in such a way that , we only have to pass the syncbo name as the parameter for that method, so that it would retrieve the records corresponding to the syncbo given.
       Since the getter nd setter method names are closely related to the names of the mapped fields, this would create problems when we change the names of fields used in the table parameter or import parameter of the BAPI Wrapper used for syncbo creation.
    So using SP 11 , we can create generic applications, which can be migrated using the higher versions of NWD Studio. I think , SAP might not change this infrastructure anymore..
      Regards,
      Kishor Gopinathan

  • Calling Custom XSLT java class from BPEL in SOA Suite 11g

    Hi All,
    Morning...need some help with this issue...we are currently on SOA Suite 11g (11.1.1.4) version.
    Earlier while we were on SOA Suite version 10g (10.1.3.3) we were calling the custom java classes from the xsl mapping for complex transformation and for this we were placing the .class file as .jar file at the location mentioned here $OC4J_HOME/j2ee/home/applib directory and then mentioning the namespace as http://www.oracle.com/XSL/Transform/java/{$classname$} in the XSLT mapping file.
    Now in SOA Suite 11g if we need to retain similar functionality for external custom java calls could someone please help us where do we need to put the .jar file now ..
    exactly at which directory location/path and on which instance/server (application server instance or middle tier instance ) we need to put this .jar file
    Currently we are stuck and need some help with this.
    With thanks & Regards

    Hi Eric & Anuj,
    Thanks for replying , sorry for checking on this now...
    here at this path /opt101/app/oracle/SOAD/SOA11gR1/fmw/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1
    we got the ora.soa.ext.jar file and extracted it to get the MANIFEST.mf file ..have mentioned below.
    Now if we need to link our custom .jar file named customfunctions.jar so we need to mention it as below is this correct :
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.1
    Created-By: 17.0-b17 (Sun Microsystems Inc.)
    Implementation-Vendor: Oracle
    Implementation-Title: Oracle SOA EXT
    Implementation-Version: 11.1.1
    Product-Name: Oracle SOA EXT
    Product-Version: 11.1.1.4.0
    Specification-Version: 11.1.1
    Extension-Name: oracle.soa.ext
    Class-Path: classes/
    Class-Path:customfunctions.jar classes/ -- is this the way to mention (means we need to add this additional line or we need to add to the existing line at Class-Path: classes/)
    2.
    Eric the Alternative method mentioned in your update :
    Open a command prompt and change the current directory to the oracle.soa.ext_11.1.1 directory ,
    then execute the build.xml file in the oracle.soa.ext_11.1.1 folder using Ant
    Now could someone please guide us regards this ANT means how does it work and its relation to the build.xml file and how do we check whether we have ANT utility available or not..
    not much conversant with this ANT hence asking here..would lookout for your reply
    thank you

  • Importing Custom folder/item class gives warning

    Hi
    When i trying to import custom folder in admin it gives me warning indicating that imported successfully but not in Business areas. now it shows in folder list but not in associated BA. so i have to manually assigned it to BA by selecting manage folders. Same thing happened with item class. it imported successfully but selected item was missing and it shows LOV in item class but when i select edit item class and i saw that selected item was empty.
    Is it bug?
    Plz help me.
    Thanks,
    Jay

    Hi Jay
    I really do understand and again I sympathize. Let me state the correct approach and you will see how your organozation is deviating from what other companies do.
    Most organizations that I work with have a single production environment. Under that they have a pre-production or QA environment, with further environments for development, test and training. They would never attempt to migrate to production without going through QA first, knowing also that QA was a copy of production that was refreshed not so long ago.
    There would also be only one development environment and one test environment. It is not a good idea to have developers working on their own private EUL as this WILL cause issues during migration.
    There's nothing to stop two developers working inside the same development EUL providing they are in different business areas. Its not wise to attempt multiple edits to the same business area at the same time as this makes for extremely difficult user testing.
    Now, if you do decide to continue using multiple development EULs you must not migrate from these straight into production. You must migrate into the QA area first where you can test and make sure that no upset has occurred. Whenever something goes to production from QA it is imperative that those same changes be propogated to all of the other EUL instances otherwise you are asking for trouble.
    Does any of this help?
    Best wishes
    Michael

  • Importing packages to java classes

    I am at present trying to write a distributed system. To do this, I write an idl which creates a group of classes I need for communication between client and server and bundles them into a package. Within the same file as the package, I am trying to write a Servant class to manipulate classes contained in the package. The servant, at its most basic, looks like this
    import UserManagerTest.*;
    public class Servant extends _UserManagerImplBase{
    When I try to compile this, the compiler returns two errors - that it can't find the UserManagerTest package and that it does not recognise the _UserManagerImplBase class.   The package resides in the same file as the Servant, so should it not be able to import it and use classes contained in it?   Any help is greatly appreciated,
    Ian

    The problem is your class path.
    Most likely either you do not have it set at all or you are pointing at a child directory rather than the root directory.
    The package resides in the same file as the Servant,Same file? You can't have two packages in the same file. And if you meant 'directory' then you might as well move it, because trying to keep two packages in the same directory, although possible, is more trouble than it is worth.

  • After upgrade to JHS Production: cannot find two standard java Classes

    Hi, First: congratulations on the Production release. Great that it is there.
    After making several backups, I have upgraded to JHS build 91 Production release (I came from JHS build 78).
    1. after upgrade to JHS Production, I tested my application first (so before re-enabling Jheadstart on the ViewController and regenerating pages). The application still worked fine
    2. I re-enabled JHeadstart on the VC project
    3. I opened my Applictation Definition Files and saved them (I noticed a deprecated property OverwriteUiModel that disappeared after saving)
    4. I ran the generator on my three App. Def. Files.
    5. I rebuild the whole application
    6. I ran the application, the first (Table-style) page comes up fine
    7. But when clicking on one of the records in the Table to navigate to the Form page...the Embedded OC4J exits with a fatal error:
    Fatal error: Cannot find class java/lang/StackOverflowError
    Fatal error: Cannot find class java/lang/NullPointerException
    The last part of the log before these fatal errors is as follows:
    06/08/11 10:12:47 [1171] Binding param "Bind_IdPerson": 210002
    06/08/11 10:12:47 [1172] **** refreshControl() for BindingContainer :PersonsPageDef
    06/08/11 10:12:47 [1173] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    06/08/11 10:12:47 [1174] **** refreshControl() for BindingContainer :PersonsPageDef
    06/08/11 10:12:47 [1175] Invoke method Action:999
    06/08/11 10:12:47 [1176] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkTypes
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkTypes: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1177] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1178] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1179] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1180] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c60
    06/08/11 10:12:47 [1181] Invoke method Action:999
    06/08/11 10:12:47 [1182] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1183] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1184] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1185] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1186] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c61
    06/08/11 10:12:47 [1187] Invoke method Action:999
    06/08/11 10:12:47 [1188] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeOrgPersonTypes
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeOrgPersonTypes: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1189] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1190] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1191] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1192] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c62
    06/08/11 10:12:47 [1193] Invoke method Action:999
    06/08/11 10:12:47 [1194] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataValidationStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataValidationStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1195] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1196] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1197] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1198] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c63
    06/08/11 10:12:47 [1199] Invoke method Action:999
    06/08/11 10:12:47 [1200] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataDivisionStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataDivisionStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1201] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1202] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1203] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:48 [1204] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c64
    06/08/11 10:12:48 [1205] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    06/08/11 10:12:48 [1206] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1207] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1208] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1209] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1210] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1211] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1212] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1213] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1214] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1215] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovAddressesPageDef.xml
    06/08/11 10:12:48 [1216] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1217] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1218] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1219] Executing and syncing on IteratorBinding.refresh from :AddrLinkTypeIterator
    06/08/11 10:12:48 [1220] Resolving VO:CodeAddrLinkTypes for iterator binding:AddrLinkTypeIterator
    06/08/11 10:12:48 [1221] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1222] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1223] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1224] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovPersonAddrOrganizationsPageDef.xml
    06/08/11 10:12:48 [1225] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1226] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1227] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1228] Executing and syncing on IteratorBinding.refresh from :AddrLinkStatusIterator
    06/08/11 10:12:48 [1229] Resolving VO:CodeAddrLinkStatuses for iterator binding:AddrLinkStatusIterator
    06/08/11 10:12:48 [1230] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1231] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1232] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1233] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovOrganizationsPageDef.xml
    06/08/11 10:12:48 [1234] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1235] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1236] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:49 [1237] Executing and syncing on IteratorBinding.refresh from :OrgPersonTypeIterator
    06/08/11 10:12:49 [1238] Resolving VO:CodeOrgPersonTypes for iterator binding:OrgPersonTypeIterator
    Fatal error: Cannot find class java/lang/StackOverflowError
    Fatal error: Cannot find class java/lang/NullPointerException
    Process exited with exit code -1.
    Any idea why this might have happened, just because I upgrade to JHS production release?
    I am reverting to build 78 again to continue developing, but hope to be able to get working with the prod release soon, but I lack knowledge to determine where the error occurs...
    Toine

    Sandra,
    I have the (ugly) feeling that I am facing the problem mentioned in http://forums.oracle.com/forums/thread.jspa?messageID=1211326? : it looks like when a JSPX page gets too complex, the Embedded OC4J raises this StackOverFlow class notfound error :-(. Probably the (it only hits me when navigating to the most complex page) generated page generated with build 78 was fine, but the generated page after build 91 has become too complex, allthough nothing changed in between. What I can see from the difference between the before and after build 91 situation for all pages, is that you have added the <id=...> arguments to all ADF elements, like [id="PersonsSaveButton"] in:
    <af:commandButton actionListener="#{bindings.Commit.execute}"
                      action="Commit"
                      textAndAccessKey="#{nls['SAVE_BUTTON_LABEL_PERSONS']}"
                      id="PersonsSaveButton">
                   <af:resetActionListener/>
      </af:commandButton>In build78 these were not there. As far as I can see another difference after generating with build 91 is a new element in the page:
    <af:panelGroup rendered="#{(bindings.PersonsIterator.currentRowIndexInRange!=-1 and bindings.PersonsIterator.findMode!='true')}">I have not seen a proper solution for this on the JDeveloper forum. I noticed people asking if there is a kind of 'maximum' on how complex a page can get before this error situation happens. No answer on that found (you do not want to know there is a maximum anyway).
    The specific page is a master with 5 stacked detail regions and three "use as LOV" groups. Further on about 30 domains are used...
    And the page has not finished yet, it will get more "complex" that this. I hope someone knows a good solution so that I can continue to use the Embedded OC4J for testing, otherwise developing wil get very time consuming if I have to deploy to AS every time...something I cannot afford since the project deadline is getting nearer and nearer.
    Toine

  • Cannot import self-defined .java files?

    Hi,
    I created a MouseHandler.java file that contains a class (without main() ). and I have another appletcode.java file that needs to import it:
    import MouseHandler;
    I tried to javac appletcode.java and it said it couldn't find the package MouseHandler but I didn't package it in the first place.
    I tried JBuilder to compile it and it too gave:
    "Class required but identifier found at line 1, column 1"
    How do I import my source file(if it is possible)?
    Thanks.

    As it stands, if the compiled .class file is in the
    same directory as your program, it should run fine
    without the import statement. Notice, the import is
    failing, but your references to it aren't?It's in the same directory. I took out the import statement and it gave error:
    class MouseHandler not found in class appletcode at line ..., column ..
    PS: this code is actually from Beginning Java 2 by Wrox. Since mine couldn't work, I downloaded their code. Their code didn't contain the import statement (which should work like you said), but when I compile their code, it gave the same error as above too.
    Assuming that code and directory is correct, is there any other possible reasons why this is happening?
    Thank you

  • Importing other package java classes

    I am doing a webapp using Tomcat .I have some classes which i want to use in another webapp.I did set the PATH variable to point to the my first webapp classes directory .But it is still not bale to locate the classes.
    Does anyone have any idea.

    Learn how the Tomcat class loaders work and how to deploy Web apps properly.
    PATH doesn't affect Java at all. That's an OS environment variable. If you meant CLASSPATH, that'll do you no good, either, because Tomcat ignores any CLASSPATH environment variable.
    Read up on the Tomcat CLASSPATH. It's important.
    If you want both apps to use those .class files you have a few alternatives:
    (1) Put those classes in a JAR file and put that in the TOMCAT_HOME/common/lib directory.
    (2) Put those classes in a JAR file and put copies in the WEB-INF/lib directory for both apps.
    (3) Copy those .class files into the WEB-INF/classes directory for both apps.
    I'd prefer (2) myself.

  • Cannot import SWF with document class (AS3)

    When I try to import a SWF-file (published from a FLA-file with a as3 document class) via the mx:SWFLoader into Flash Builder, the imported SWF is not showing up (as3 build a cube from papervision3d). Which way do you have to import such a SWF-file?
    Regards, Sjoerd

    Shitf+Ctrl+Enter:
    Attempting to launch and connect to Player using URL preloader.swf
    [SWF] preloader.swf - 9591 bytes after decompression
    [SWF] big.swf - 1785015 bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at DocumentlClass()
    Cannot display source code at this location.
    My document class (simplyfied):
    package {
        import flash.display.Sprite;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import fl.transitions.Tween;
        import fl.transitions.TweenEvent;
        import fl.transitions.easing.*;
        import flash.events.ProgressEvent;
        public class CarouselClass extends MovieClip {
            private vars...
            public function CarouselClass() {
                trace("document class triggered");
                    this.addEventListener(Event.ADDED_TO_STAGE,init);
            private function init(evt:Event):void{
                 texts = new Texts();
                carouselSprite = new Sprite();
                addChild(carouselSprite);
                topContainer = new Sprite();
                carouselSprite.addChild(topContainer);
                hitBar = new HitBar();
                hitBar.x = stage.stageWidth / 2 - hitBar.width /2;
                hitBar.y = 245;
                addChild(hitBar);
                downContent = new DownContent();
                addChild(downContent);
                downContent.y = 325;
                downContent.title_txt.text = "Learning Carousel";
                downContent.description_txt.text = "Click on one of images above to view further details";
                createSections();
            } ... (more functions)

  • What are the two packages default imported into all Java classes?

    I just remember one of it is java.lang.* ... What are the others? Thanks for any replies. ^v^

    http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
    For your convenience, the Java compiler automatically imports three entire packages:
    The default package (the package with no name)
    The java.lang package
    The current package by default

  • Cannot Import Video made with iMovie for iPhone/iPod Touch

    I edited a video on my iPod touch using Apple's iMovie. The resulting .MOV file that iMovie creates will not import into iPhoto '11. While iMovie recognises the file just fine, iPhoto believes it is an unsupported file type. It's a .MOV for goodness sakes created with Apple's own hardware and program! Very strange. Just wondering if anyone else has had a similar experience.

    Hey there. In answer to your question, all other clips that appear in my camera roll are easily seen by iPhoto. It is only those movies that I have created with iMovie for iPhone that iPhoto does not recognize. It's really strange, considering the fact that it's just a .MOV file. As a result, I've had to download a program called 'DiskAid' that allows me to transfer the .MOV file directly to my computer from the iPod Touch.
    In answer to your question regarding whether or not iMovie for iPhone was worth downloading, I would have to say yes (assuming of course the import-to-iPhoto problem gets fixed). It's not a perfect program. My biggest complaint is that you have to import clips ONE at a time. There's no 'import all' option. This is really time consuming as you have to cycle through all the videos on your iPod or iPhone and manually tap each one and repeat. My dad likes to take a lot of 1-minute videos that then have to get spliced together and that can be really tedious with how this iMovie is currently set up. However, if you regularly think to add your clips to an existing project as you go along, things should be fine. It could do with a few more features and faster rendering times, but on the whole, it's a decent program. I have a feeling, though, that it was designed more for the YouTube generation who want to upload a five-minute video instead of people like my father and I who like to edit an hour or so and then eventually burn to a DVD. iMovie for the Mac still CERTAINLY has it's place.

  • Cannot import WSDL to JAVA JAX-RPC (using WSCOMPILE)

    I exported a WSDL-file (i.e. for RFC_PING) via the BSP WebServiceBrowser (WAS 6.20). For generating the interface i have to start the wscompile-tool of JAX-RPC (right ?). But wscompile answers with an error:
    unerwartetes Element "definitions" in Konfigur
    ationsdatei (Zeile 1)
    Are the WSDL-files not compatible ? How I have to work with the WSDL ?

    Oops, i used a wrong configfile for the wscompile tool. It's all right now.

  • Importing Java Class Question

    Hello,
    Sorry for such a newbie question and such a long post, I did remember how to do this before but now I can't for the life of me remember. Anyhow, I have a simple question about importing custom-made java classes, from another directory in the windows operating system. I have the classpath set, and also I realize that because the two files below are in the same directory theres no need for an import statement as Java will look for the class in the same directory.
    But I would like to know how the import statement is suppose to look to import a custom made java class from another directory, (assuming of course that I set the correct classpath)
    here's the java class location:
    c:\school\csc365\narcus.java
    //narcus.java
    import java.io.*;
    class narcus implements Comparable
    String firstName = "firstName";
    String lastName = "lastName";
         public narcus()
         firstName = firstName;
         lastName = lastName;
         public narcus(String f)
         firstName = f;
         lastName = lastName;
         public narcus(String f, String l)
         firstName = f;
         lastName = l;
    public String getFirst()
    return "first..";
         public int compareTo(Object e)
         return 1;
    Here's the location of the driver program thats suppose to use the narcus.java class
    c:\school\csc365\test.java
    //test.java
    //import statement? maybe import "c:\\school\\csc365\\*"; ?
    import java.io.*;
    class test
    public static void main(String[] args)
         narcus jim = new narcus();
         System.out.println("omg\n");
         System.out.println(jim.getFirst());
    And also, here is my classpath:
    PATH=c:\school\csc365\;c:\school\
    The classpath also points to the jdk libraries and few other directories but I didn't write that above, as it probably isn't relevant.
    I've tried the following import statements.
    import "c:\\school\csc365\\narcus.java";
    import "narcus.java";
    import "c:\\school\\csc365\\*";
    But I keep getting an error that says:
    test.java:1 <identifier> expected
    Any help is appreciated!

    Hi Folks,
    I am new to this forum, heard that interesting discussions always happens on this forum so immediately registered,don't want to miss any oppurtunity to participate in discussions.
    I have pretty much basic question regarding compiling and exceuting files in different packages.I have the following directory structure
    C:\Projects\WDPROEast\Development\CommonService\Code\Java from where java files stored in different packages as follows:
    com\wdpro\commerce\common\crm\dae\nautilus\adapter directory has java files in com.wdpro.commerce.coomon.crm.dae.nautilus.adapter package.
    com\wdpro\commerce\common\dae\exception has java files with package named com.wdpro.commerce.common.dae.exception.
    com\wdpro\commerce\common\dls\exception has java files with corresponding package name.
    com\wdpro\commerce\common\dto has java files under proper package name.
    com\wdpro\commerce\common\exception has java files with appropriate package name.
    com\wdpro\commerce\common\util has java files with package name. I am starting at Java Directory,want to compile and run file named a.java in com.wdpro.commerce.coomon.crm.dae.nautilus.adapter package with having all other java files on classpath as follows
    so I issued command for compilation as follows C:\Projects\WDPROEast\Development\CommonService\Code\Java>javac com/wdpro/commerce/common/crm/dae/nautilus/ada
    pter/a.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/NautilusServiceUtility.java com/wdp
    ro/commerce/common/crm/dae/nautilus/adapter/URLReader.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/
    b.java com/wdpro/commerce/common/dae/exception/*.java com/wdpro/commerce/common/dto/*.java
    com/wdpro/commerce/common/exception/*.java com/wdpro/commerce/common/util/*.java com/wdpro/commerce/common/dl
    s/exception/*.java It compiled greatly but when I issue command to run a.class file as
    C:\Projects\WDPROEast\Development\CommonService\Code\Java>java com/wdpro/commerce/common/crm/dae/nautilus/adap
    ter/UtilityAccesssit's giving following exception
    Exception in thread "main" java.lang.NoClassDefFoundError: com/wdpro/commerce/common/crm/dae/nautilus/adapter/
    UtilityAccesssbut when I run a.java with the following command
    C:\Projects\WDPROEast\Development\CommonService\Code\Java>java com/wdpro/commerce/common/crm/dae/nautilus/adap
    ter/UtilityAccess com/wdpro/commerce/common/crm/dae/nautilus/adapter/NautilusServiceUtility.java com/wdpro/com
    merce/common/crm/dae/nautilus/adapter/URLReader.java com/wdpro/commerce/common/crm/dae/nautilus/adapter/Nautil
    usAccessUtility.java com/wdpro/commerce/common/dae/exception/*.java com/wdpro/commerce/common/dto/*.java com/w
    dpro/commerce/common/exception/*.java com/wdpro/commerce/common/util/*.java com/wdpro/commerce/common/dls/exce
    ption/*.javaSo my question do I need to add all required java files to path when required class files are under different packages?is it manadatory.
    I hope you understand my question,pass me any comments you may have.
    Thanks alot,
    Anu

  • Custom Java class called from RTF template generates error

    We are running a report in BI Publisher and the report calls a custom developed Java class that is used to bind PDFs together and sent the result to another application.
    On the RTF template we have some XSLT that reads the input XML and sets a variable which is then passed to the Java class. We are however getting the following error when the report is called simultaneously 2 or more times:
    XML-22044: (Error) Extension function error: Error invoking 'JavaClassName': 'java.lang.Error: Cannot interweave overlay template with pdf input, combined number of pages is odd!
    I read this as the real cause of the error is the Java code but I'm not 100% sure. Also I don't understand what the error message means.
    Could someone help out please?
    Many thanks

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • Importing java class from forms 6i

    Dear people
    I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm.
    please tell me how to solve the problem.
    Yasser

    +... not a Java question. Post moved from the New To Java to the Forms forum.+

Maybe you are looking for