1046: not a compile-time constant: TimerEvent.
I know this is simple but I just cannot see what I am doing
wrong
it is in reference to "public function
moveClip(event:TimerEvent):void {"
any help is appreciated .
my code is attached
thank you
I am old .. and I guess I just see what I want to see ...ty
for your help
I moved it to AS3 ...
I added the timer change found a few more errors and
then I got same error ...
Similar Messages
-
I am getting the followiing error in my main document class:
"1046: Type was not found or was not a compile-time constant:TimerEvent."
It's showing in line 47 and 54 (in red below). Any help would be appreciated. BTW, this is my first time creating a main document class since graduating to class files!:
package
//**************** IMPORT STATMENTS *********************
import flash.display.MovieClip;
import com.greensock.TweenLite;
import flash.utils.Timer;
public class Main extends MovieClip
//***************** Variables ***************************
/*private var appStoreURL:URLRequest = new URLRequest("http://itunes.apple.com/us/artist/quackenworth/id518210161");
private var facebookURL:URLRequest = new URLRequest("http://www.facebook.com/quackenworth");
private var twitterURL:URLRequest = new URLRequest("http://www.twitter.com/quackenworth");*/
private var MainScene:Main = new Main();
private var PopUp_MoreApps:MoreApps_mc = new MoreApps_mc();
private var PopUp_About:About_mc = new About_mc();
//*****SPLASH SCREEN ***
private var mc_timerSplash:Timer;
private var splashScreen:mcSplashScreen;
//*****************CONSTRUCTOR CODE ***********************************************************************************
public function Main()
mc_timerSplash = new Timer(3000,1);
mc_timerSplash.addEventListener(TimerEvent.TIMER, StartTimer);
//When timer is finished stop the timer;
mc_timerSplash.addEventListener(TimerEvent.TIMER_COMPLETE, timerCompleted);
splashScreen = new mcSplashScreen();
addChild(splashScreen);
splashScreen.x = stage.stageWidth / 2;
splashScreen.y = stage.stageHeight / 2;
mc_timerSplash.start();
//*********** FUNCTIONS *********************************
private function timerCompleted(e:TimerEvent):void
mc_timerSplash.stop();
mc_timerSplash = null;
private function StartTimer(e:TimerEvent):void
TweenLite.to(splashScreen, 1, {alpha:0, onComplete: SplashScreen});
private function SplashScreen():void
removeChild(splashScreen);
addMainScene();
private function addMainScene():void
addChild(MainScene);
MainScene.x = 489;
MainScene.y = 350;
//TweenLite.from(MainScene.wbbIntro_mc, .5, {alpha: 0});
TweenLite.from(MainScene, 1, {alpha:0});
TweenLite.to(MainScene.girls_mc, 1, {y:395, delay:.3});
TweenLite.to(MainScene.boys_mc, .5, {y:396, delay: .6});
TweenLite.to(MainScene.Joe_mc, .5, {y:339, delay: 1});
TweenLite.to(MainScene.Paul_mc, .5, {y:322, delay:1.2});
private function removeMainScene():void
removeChild(MainScene);
TweenLite.to(MainScene.girls_mc, .1, {y:690});
TweenLite.to(MainScene.boys_mc, .1, {y:693});
TweenLite.to(MainScene.Joe_mc, .1, {y:636});
TweenLite.to(MainScene.Paul_mc, .1, {y:619});Now that the error is solved, when I test nothing happens. I just get a blank screen.
What is supposed to happen? When the program opens a splash screen should be added for 3 seconds and then fade out. Then some main screen movie clips should be added to the stage. -
1046: Type not a compile-time constant: TimerEvent.
I have a simple space ship in an fla
have this .as file
but still getting the error
related to the line "public function
moveClip(event:TimerEvent):void {"instead of using
import flash.events.TimerEvent.*;
use
import flash.events.TimerEvent;
and you probably need
import flash.utils.Timer; -
Hi There,
We're trying to add a simple link to an existing Flash file. There looks to be at least 7 separate .as files and a separate swf that loads the main swf which all seems overly complex for what is essentially a page with six buttons on it.
However, we need to add a URL to some of the text. So we converted the text to a button, added an instance name of <ssbpurchasetickets_btn> then added the following Actionscript into the actions layer on the frame the text/button appears:
ssbpurchasetickets_btn.addEventListener(MouseEvent.CLICK, ssbButtonPurchase);
function ssbButtonPurchase(event:MouseEvent):void
navigateToURL(new URLRequest("http://www.url.com/tickets.html"));
When we publish the file we get the following error which seems to cascade into a whole bunch more errors:
Description: 1046: Type was not found or was not a compile-time constant: MouseEvent.
Source: function ssbButtonPurchase(event:MouseEvent):void
We added "ssb" onto the button and functions to ensure there were no conflicts but the same thing occurred. If we copy the button into a new file everything works so it must be conflicting with something in the main files.
Any help would be MUCH appreciated!!!!
CheersThanks for the reply Ned,
The file is set to use AS3 and I'm pretty sure the original should be set to AS3 as the .as files look like AS3 syntax to me - here's a sample:
protected function handleWwrdButtonClick(e:ButtonEvent):void {
Browser.open(globalVar.xml.wwrd.item[0].@url, globalVar.xml.wwrd.item[0].@target);
OmnitureTracker.trackFeaturedContentClick('http://www.url.com/movies/international', 'wwrd_button');
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, onTimer);
I'm wondering if all the Actionscript has be placed into one of the .as files as there isn't any Actionscript in the Flash project - a part from the odd stop()
Really stuck on this one (I'm not an expert at all) so any help in deciphering the project would be much appreciated.
Cheers -
1046: Type was not found or was not a compile-time constant: Event.
I am more than a little frustrated. I'm using Flash Professional CS5.5, attempting to publish ActionScript 3.0 for FlashPlayer 10.2
My code begins with:
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.utils.Timer;
import flash.events.TimerEvent;
Then much later I have:
teamFourCar_mc.addEventListener(Event.ENTER_FRAME, trackPosition);
function trackPosition (event:Event)
and I keep getting a compiler error:
Scene 1, Layer 'actions', Frame 1, Line 434
1046: Type was not found or was not a compile-time constant: Event.
I have imported the class "Events". I have successfully used the same construction in other scripts... in fact, virtually the same construction is included in Code Snippets as Fade In and Fade Out. Adding ":void" after (event:Event) makes no difference. I have Googled - to no avail - and spent the better part of a day reading through the on-line help files, but the solution is still eluding me.
It's probably so simple I'm going to smack myself in the forehead and mutter "Duh!" when I find a solution...
If you can do anything to hasten that event (no pun intended) I (with the possible exception of my forehead) will be very grateful.
TIA
TerrySinious:
The entire code of the main movie clip is at http://pastebin.com/JYfLUhh1
A sample of one of the four "problem" movie clips is at http://pastebin.com/gQGDyngx
There is nothing wrong with the "problem" clip. The problems are in the main movie clip:
Scene 1, Layer 'actions', Frame 1, Line 427
1046: Type was not found or was not a compile-time constant: Event.
Scene 1, Layer 'actions', Frame 1, Line 612
1046: Type was not found or was not a compile-time constant: Event.
Scene 1, Layer 'actions', Frame 1, Line 1819
1046: Type was not found or was not a compile-time constant: Event.
There are the only three occurrences of a function with (event:Event). Two are ENTER_FRAME (427 & 1819) The other is COMPLETE from Loader.info
Auto format reported a syntax error "near 'if(movingCar.currentFrame == (dieRoll * 24) + movingCarPosition)' " but I can't detect what, if anything, is wrong with it.
I'm not an experienced developer... in fact, the last programming I did before taking up Flash three months ago was with QuickBasic under DOS 6.2... therefore, please try not to roll your eyes too much when you see how inelegant the code is.
I have a working version, but it's over 7,000 lines and a memory hog. I'm trying to make it more elegant and more efficient. BTW, the three (event:Event) functions are in the working version in more or less the same places, with the same calling code.
I hope you can figure it out.
Thank you in advance -
Hi Everyone..
I am getting an Error 1046: Type was not found or was not a compile-time constant: Component Event.
The ComponentEvent class has been imported,and also the event handling code is there. I am not sure what else is wrong, hope somebody can advise me. Thanks. The code is below, the point where the error occurs as indicated by the compiler has been highlighted.
package
import flash.display.Sprite;
import flash.media.Camera;
import flash.media.Microphone;
import flash.media.Video;
import fl.controls.TextArea;
import fl.controls.Button;
import fl.controls.TextInput;
import flash.events.SyncEvent;
import flash.events.MouseEvent;
import flash.events.FocusEvent;
import flash.net.SharedObject;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.NetStatusEvent;
import flash.events.FocusEvent;
import flash.events.ComponentEvent;
public class VideoChat extends Sprite
private var button:Button;
private var text_so:SharedObject;
private var textArea:TextArea;
private var textInput:TextInput;
private var chatName:TextInput;
private var nc:NetConnection;
private var nsOut:NetStream;
private var nsIn:NetStream;
private var rtmpNow:String;
private var msg:Boolean;
private var cam:Camera;
private var mic:Microphone;
private var vid:Video;
public function VideoChat ()
//Set up UI
textArea = new TextArea();
textArea.setSize(500,280);
textArea.move(20,54);
addChild(textArea);
textInput = new TextInput();
textInput.setSize(500,24);
textInput.move(20,340);
textInput.addEventListener(ComponentEvent.ENTER,checkKey);
addChild(textInput);
button = new Button();
button.width=50;
button.label="Send";
button.move(20,370);
button.addEventListener(MouseEvent.CLICK, sendMsg);
addChild(button);
chatName = new TextInput;
chatName.setSize (100,24);
chatName.move (80,370);
chatName.text="<Enter Name>";
chatName.addEventListener (FocusEvent.FOCUS_IN, cleanName);
addChild(chatName);
//Connect
rtmpNow="rtmp:/VideoChat ";
nc=new NetConnection;
nc.connect (rtmpNow);
nc.addEventListener(NetStatusEvent.NET_STATUS,doSO);
cam = Camera.getCamera();
mic=Microphone.getMicrophone();
//Camera Settings
cam.setKeyFrameInterval(15);
cam.setMode (240, 180, 15, false);
cam.setMotionLevel(35,3000);
cam.setQuality(40000 / 8,0);
//Microphone Settings
mic.gain = 85;
mic.rate=11;
mic.setSilenceLevel (25,1000);
mic.setUseEchoSuppression (true);
//Video Setup
vid=new Video(cam.width, cam.height);
addChild (vid);
vid.x=10, vid.y=20;
//Attach local video and camera
vid.attachCamera(cam);
private function doSO(e:NetStatusEvent):void
good=e.info.code == "NetConnection.Connect.Success";
if(good)
//Set up shared object
text_so=SharedObject.getRemote("test", nc.uri, false);
text_so.connect (nc);
text_so.addEventListener(SyncEvent.SYNC, checkSO);
private function checkSO(e:SyncEvent):void
for (var chung:uint; change<e.changeList.length; chng++)
switch(e.chageList[chng].code)
case "clear":
break;
case "success":
break;
case "change":
textArea.appendText (text_so.data.msg + "\n");
break;
private function cleanName(e:FocusEvent): void
chatName.text="";
private function sendMsg(e:MouseEvent):void
noName=(chatName.text=="<Enter Name>" || chatName.text=="");
if (noName)
textArea.appendText("You must enter your name \n");
else
text_so.setProperty("msg", chatName.text +": " + textInput.text);
textArea.appendText (chatName.text +": "+textInput.text +"\n");
textInput.text="";
private function checkKey (e:ComponentEvent):void
noName=(chatName.text=="<Enter Name>" || chatName.text=="");
if (noName)
textArea.appendText("You must enter your name \n");
else
text_so.setProperty("msg", chatName.text +": " + textInput.text);
textArea.appendText (chatName.text +": "+textInput.text +"\n");
textInput.text="";
//Create NetStream instances
private function checkConnect (e:NetStatusEvent):void
msg=e.info.code == "NetConnection.Connect.Success";
if(msg)
nsOut=new NetStream(nc);
nsIn=new NetStream(nc);
//NetStream
nsOut.attachAudio(mic);
nsOut.attachCamera(cam);
nsOut.publish("camstream");
nsIn.play("camstream");Hi Guys...
I have found out what is wrong. I was importing the wrong package the correct one should have been:
import fl.events.ComponentEvent;
instead of
import flash.events.ComponentEvent;
I hope this is helpful for anyone caught in a simillar situation as me...Thanks.. -
Type was not found or was not a compile-time constant?
Hi guys,
I'm going nuts. I've got this movieclip that I made into a
button with ActionScript. When clicked, it
should go to a frame in my main timeline labeled "beansbus",
but whenever I try to test the movie out, Flash
gives me this error:
1046: Type was not found or was not a compile-time constant:
bus.
I've looked around on the internet and I've been told that
this error can
crop up if the instance name is the same as a library object.
That WAS the
problem, but I renamed the library object to Cutebus, so that
should have fixed it, I hope. There was another fix that involved
something called TextFields in my movieclip, but I don't have
those...
My code looks like this, which was copied and pasted from an
in-class tutorial that DOES work, with no problems.
Thanks in advance for any light you can shed on this.actually the error:
quote:
TypeError: Error #1009: Cannot access a property or method of
a null object reference. at
beans_fla::MainTimeline/frame1()[beans_fla.MainTimeline::frame1:3]
may not obviously give the line number at first
glance, but it does! 'frame 1:3' refers to frame 1, line 3. which
if your code post was accurate to line numbers, refers to:
quote:
bus.stop();
so i'd suggest looking at your bus clip and
ensuring that you have correctly defined its instance name. Also,
make sure you have this correctly defined in each keyframe that the
clip appears. -
Initializer element is not a compile-time constant in Xcode
hi.......Every one
ModelController.h
#import <Foundation/Foundation.h>
@interface ModelController : NSObject
@property(nonatomic , strong)NSArray *states_Array;
@end
ModelController.m
#import "ModelController.h"
@implementation ModelController
@synthesize states_Array;
states_Array = [[NSArray alloc]initWithObjects:@1,@2,@3, nil];
@end
Now i want to access these array in MY TableViewController at cellForAtIndexPath
Thanks InAdvanceIf you're using Flex 3.4 SDK, put only AdobeSpellingEngine.swc and AdobeSpellingUI.swc in your libs folder. (AdobeSpellingUIEx.swc is for Flex 4)
For more details, please refer to the release notes
http://labs.adobe.com/technologies/squiggly/releasenotes.html
Hope this helps. -
Constants v/s compile time constants.
Hi to all.
I got a problem in understanding compile time constants.
I was reading about switch statement, and found a fact:
the case constant in switch statement should be compile time constant.
and example they have given is:
final int a=1;
final int b;
b=2;
int x=0;
switch(x)
case a: //ok.
case b: //compiler error.
so is it true, that compile time constants are only those which are final and are initialized at the time of declaration itself.
then what b will be called, "runtime constant" (sounds odd).I once read on a post here (or article) that the
compiler will replace any variable name you set in
the switch case with the actual value. That is why
it
works on 'a' but not on 'b'. At compile time the
compiler only knows the value of 'a'.
That is not why you can use a but not b for the
switch. The reason is that the compiler knows the
value of a but not of b.
What's the difference? -
Class loading and Compile time constants
Hi,
I am not sure if this is the right place for basic questions. I would appreciate any help.
From my understanding, the compile time constants are folded into the byte code during compilation. ( E.g. static final int MAX = 10; ). When I access a compile time constant from a different class, I can see that the class that holds the constant is not loaded at all. ( using -verbose:class option )
Now, my question is, how does JVM access the class that holds the constant without loading it ?! Without the class being loaded, how can the JVM get a binary representation of the same ? What am I missing here ?
thanks,
Soumya.class A {
public static final int X = 10;
class B {
void foo(int n) {
switch n {
case A.X:
yadda();
}The value of X (10) from class A is "folded" into the bytecode of class B. -
Hey i have a doubt regd compile time constants
byte a =10,b=20;
byte c= a+b; // compile time error coz a+b may exceed byte limit
int a=10,b=20;
int d=a+b; // not showing any error . a+b may exceed int limit
can anyone clear me int hispublic class Test {
public static void main(String[] args) {
byte a = 10, b = 20;
byte c = a+b; //syntax error: "possible loss of precision"
final byte d = 10, e = 20;
byte f = d+e; //OK
}It's not about overflow, but implicit casting: in the expression a+b, bytes a and b
are widened to int and the addition is 32-bit addition -- the result is an int.
When you attempt to assign an int to a byte, the top three bytes are discarded,
hence the syntax error "possible loss of precision". You get the same
error message when assigning a double to a float.
Why don't I get the syntax error with my d-e-f example? Variables d and e
are declared final, so the compiler folds in their values. Thus it know 10+20
is 30 and that the int value 30 fits into one byte. -
what is compile time constant
1. final int a=9;
2 final int b
b=9;
is 2 statement not a compile time constantScreen13Name wrote:
but we cannot change its value then how it is not a constantThe term "compile-time constant" has a very specific meaning and very specific implications in the Java language.
Just because something isn't a compile-time constant doesn't mean that it can be changed. -
ClassNotFoundException at compiling time
I am trying to access MySql database from a java applet, but my java file does not compile with this message error: java.lang.ClassNotFoundException...
I have jdk1.3.1_03 installer under Windows98 SE and compiling with javac.exe...
I have set the autoexec.bat environment to
PATH C:\JDK1.3.1_03\BIN
SET JAVA_HOME=C:\jdk1.3.1_03
SET CLASSPATH=C:\WINDOWS\ESCRITORIO\JAVA\mm.mysql-2.0.13-bin.jar
where i have the jar file. Also have proved withouth the filename on it, and many different combinations. I am completely stuck, please any idea will be very welcome!!!!!!!!
Thanks...
CesarIf you are getting an exception, it is a run-time error not a compile-time error.
Try including your current working directory in your classpath. -
Hello
In my application I have 4 Model project and one ViewController project.
In the log file , the compilation takes 3 minutes! With the startup of the server I'm starting the application for about 5-6 minutes each time.
Is there some way to decrease this time?
here is the snipped from the log that takes 3 minutes (It's too long I know but maybe it would be helpful):
[4:59:18 PM] Appc compilation begin
Compiling out of process...
F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\bin\javaw.exe -Xms128m -Xmx512m -Xverify:none -client -classpath F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\lib\tools.jar;F:\Dreamix\Oracle\Middleware12\wlserver_10.3\server\lib\weblogic.jar -Dweblogic.jsp.diagnosticWithAbsolutePath=true -Dweblogic.classloader.noJarSigners=true weblogic.appc -library "C:\Documents and Settings\game\Application Data\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\.wlLibs\jsp\ADF-Faces-Components11.war@name=ADF-Faces-Components,F:\Dreamix\Oracle\Middleware12\wlserver_10.3\common\deployable-libraries\jsf-1.2.war@name=jsf@libimplver=1.2.9.0,C:\Documents and Settings\game\Application Data\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\.wlLibs\jsp\ADF-Data-Visualization1.1.war@name=ADF-Data-Visualization,C:\Documents and Settings\game\Application Data\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\.wlLibs\jsp\Trinidad-Components1.2.war@name=Trinidad-Components,F:\Dreamix\Oracle\Middleware12\wlserver_10.3\common\deployable-libraries\jstl-1.2.war@name=jstl@libimplver=1.2.0.1,F:\Dreamix\Projects\TechnoclassADF\ViewController\classes\.wlLibs\jsp\TCCustomComponents1.0.war@name=TCCustomComponents" -plan C:\DOCUME~1\game\LOCALS~1\Temp\ViewController996397250600113496_plan\plan.xml -jsps "@C:\DOCUME~1\game\LOCALS~1\Temp\appcFileList6512737247651299161.txt" -output F:\Dreamix\Projects\TechnoclassADF\ViewController\classes\.wlsjsps -g -forceGeneration -classpath F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\lib\resources.jar;F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\lib\rt.jar;F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\lib\jsse.jar;F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\lib\jce.jar;F:\Dreamix\Oracle\Middleware12\jdk160_14_R27.6.5-32\jre\lib\charsets.jar;F:\Dreamix\Projects\TechnoclassADF\.adf;F:\Dreamix\Projects\TechnoclassADF\ViewController\classes;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.pageflow_11.1.1\adf-pageflow-impl.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.pageflow_11.1.1\adf-pageflow-dtrt.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.pageflow_11.1.1\adf-pageflow-fwk.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.pageflow_11.1.1\adf-pageflow-rc.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.controller_11.1.1\adf-controller.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.controller_11.1.1\adf-controller-api.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.controller_11.1.1\adf-controller-rt-common.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adf-controller-schema.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-api.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-impl.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-api-11.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-impl-11.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.security_11.1.1\adf-controller-security.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.activation_1.1.0.0_1-1.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adfmweb.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.servlet_1.0.0.0_2-5.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.jsp_1.1.0.0_2-1.jar;F:\Dreamix\Oracle\Middleware12\wlserver_10.3\server\ext\jdbc\oracle\11g\ojdbc6.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\jlib\commons-cli-1.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.dms_11.1.1\dms.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.ucp_11.1.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.management_1.2.1.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.management.j2ee_1.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\org.apache.commons.beanutils_1.6.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\org.apache.commons.logging_1.0.4.jar;F:\Dreamix\Oracle\Middleware12\modules\com.bea.core.apache.commons.collections_3.2.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jsf_1.2.9\glassfish.jsf_1.2.9.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jsf_1.2.9\glassfish.jstl_1.2.0.1.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jsf_1.2.9\javax.jsf_1.2.0.1.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jsf_1.2.9\wls.jsf.di.jar;F:\Dreamix\Oracle\Middleware12\modules\glassfish.el_2.1.1.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-utils.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-jclient.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-trinidad.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-faces.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\jlib\jewt4.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\jlib\inspect4.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\jaxrpc-api-10.1.3.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\wsclient-10.1.3.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\wsserver.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\wssecurity.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\wsdl.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\orasaaj.jar;F:\Dreamix\Oracle\Middleware12\modules\com.bea.core.weblogic.saaj_1.4.0.0.jar;F:\Dreamix\Oracle\Middleware12\modules\com.oracle.ws.orawsdl_1.1.0.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\orawsrm.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\orawsrel.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.xml.registry_1.0.0.0_1-0.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\orajaxr.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\xsdlib.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\mdds.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\wsif.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\org.jaxen_1.1.1.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\ojpse.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_wss.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_saml.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.osdt_11.1.1\osdt_saml2.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;F:\Dreamix\Oracle\Middleware12\modules\com.oracle.ws.http_client_1.1.0.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.xdb_11.1.0.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.xml.stream_1.0.0.0.jar;F:\Dreamix\Oracle\Middleware12\modules\glassfish.jaxb_1.2.0.0_2-1-7.jar;F:\Dreamix\Oracle\Middleware12\modules\glassfish.jaxb.xjc_1.2.0.0_2-1-7.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\webservices\lib\oc4j-schemas.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.odl_11.1.1\ojdl2.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\org.apache.commons.digester_1.8.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\org.springframework_2.0.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.wsm.common_11.1.1\wsm-policy-core.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.wsm.common_11.1.1\wsm-pmlib.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.wsm.agent.common_11.1.1\wsm-pap.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.wsm.agent.common_11.1.1\wsm-agent.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.wsm.common_11.1.1\wsm-secpol.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.javatools_11.1.1\javamodel-rt.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.mail_1.4.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.webservices_11.1.1\lwdom.jar;F:\Dreamix\Oracle\Middleware12\modules\com.bea.core.woodstox_1.0.0.0_3-2-5.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-databinding-rt.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;F:\Dreamix\Oracle\Middleware12\modules\javax.security.jacc_1.0.0.0_1-1.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\jdom-1.1\build\jdom.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\jdom-1.1\lib\jaxen-core.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\jdom-1.1\lib\jaxen-jdom.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\jdom-1.1\lib\saxpath.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\jlib\bundleresolver.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adflibfilter.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-changemanager-rt.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.facesconfigdt_11.1.1\facesconfigmodel.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.facesconfigdt_11.1.1\taglib.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\log4j-1.2.15.jar;F:\Dreamix\Projects\TechnoclassADF\extlib\log4j-1.2.15.jar;F:\Dreamix\Projects\TechnoclassADF\CustomComponents\deploy\tcCustomComponents.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-databindings.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.view_11.1.1\dvt-facesbindings.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\jdev\lib\jdev-rt.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\sqlj\lib\runtime12.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\groovy-all-1.6.3.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\adfdt\lib\adf-dt-at-rt.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\adfdt\lib\adf-transactions-dt.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adfdt_common.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\bc4jwizard.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-collation.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-lcsd.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-mapping.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-servlet.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-translation.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n-utility.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;F:\Dreamix\Projects\TechnoclassADF\CommonModel\deploy\CommonModelLib.jar;F:\Dreamix\Projects\TechnoclassADF\ModModel\deploy\ModModel.jar;F:\Dreamix\Projects\TechnoclassADF\STModel\deploy\STModel.jar;F:\Dreamix\Projects\TechnoclassADF\OSNModel\classes;F:\Dreamix\Oracle\Middleware12\jdeveloper\BC4J\jlib\bc4jtester.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\adfm-debugger.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.adf.model_11.1.1\regexp.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.help_5.0\ohj.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.help_5.0\help-share.jar;F:\Dreamix\Oracle\Middleware12\oracle_common\modules\oracle.help_5.0\oracle_ice.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\ide\lib\idert.jar;F:\Dreamix\Oracle\Middleware12\jdeveloper\ide\lib\javatools.jar;F:\Dreamix\Oracle\Middleware12\wlserver_10.3\server\lib\weblogic.jar F:\Dreamix\Projects\TechnoclassADF\ViewController\public_html
[5:02:01 PM] Appc compilation endHi all,
I have this problem too, and I know the problem isn't my hardware, because I'm running JDeveloper on a PC with these specs: Win 7 64bit, cpu: intel Core i7-3930K, 16G RAM, SSD Hard.
Also all JDK that I'm using are 64bit, But when my project got bigger, I have these problem too. I can't count on my project RUN TIME, because of hanging JAVAW.exe !
Sometime it passes quickly as a flash, but sometime it takes more than an hour (maybe more!) with same project!
As "a.gruev" mentioned, it's NOT for Compiling Time, and NOT for Weblogic Start Time, it's just JAVAW that takes a long time!
I couldn't find any solution on the net, but I've checked the JAVAW.EXE and I've realized after more than 5 min it doesn't do anything special(!) and just waits, waits, and waits!!
So, I've found a solution incidentally, but I don't know if it's a good solution or not, but it works for me. Every time JDeveloper takes more than 5 min by JAVAW, I'll open "Resource Monitor" in Win 7, and will find javaw.exe in cpu list.
After that, I'll choose "Analyze Wait Chain" via Context Menu on Javaw.exe, and it'll popup a panel that shows two chained thread of javaw.exe. Finally, I'll select Sub-Thread and will order to end process of Sub-Thread, and at last waiting problem will be solved! And JDeveloper will do next step (Weblogic starting commands).
It's working for me, and I hope helps other person who have my problem too. -
Get some informations on the JVM : compile time, loading time
Hi everybody,
I'm running a simple jar application in command line that :
- starts
- calculates something
- stops
It's a simple test :D
I would like to get some informations :
- the number of loaded classes
- the time spent to load / compile classes
Typically, it's the TotalLoadedClassCount and the TotalCompilationtime in JConsole
Do you know a software to do it ?
Thanks for your help
ObelixHi,
I did some tests (powerPC603E 266hz/ 128Mo RAM / 64Mo ROM)
and I think that obfuscation has an good impact on loading classes only !
Please see the folowing results with a non obfuscated jar :
time java -jar none_obfuscated.jar
=====================================================================
Test with 'none_obfuscated.jar' (4.8M)
=====================================================================
- GoodMorning...
- Start your job at 19:52:45
- You must work today (load 2000 classes)
- Stop your job at 19:54:11
- GoodEvening...
- You worked for 85.934s today
==>> TotalCompilationTime : 2.731s
==>> TotalLoadedClassCount : 2468
real 1m 30.26s
user 1m 27.55s
sys 0m 2.66s
=====================================================================and with the same jar but obfuscated :
time java -jar obfuscated.jar
=====================================================================
Test with 'obfuscated.jar' (4.1M)
=====================================================================
- GoodMorning...
- Start your job at 19:54:16
- You must work today (load 2000 classes)
- Stop your job at 19:55:39
- GoodEvening...
- You worked for 83.392s today
==>> TotalCompilationTime : 2.721s
==>> TotalLoadedClassCount : 2468
real 1m 27.75s
user 1m 25.04s
sys 0m 2.65s
=====================================================================I did 3 times this tests and I can notice this :
- no differences for TotalCompilationTime
- no differences for TotalLoadedClassCount (of course)
- a difference of 2.54s for working time (load 2000 classes)
In conclusion, obfuscated code increase, a little bit, the loading classes but not the compilation time !
We can calculate the starting time of the JVM :
- none obfuscated : 1m 30.26s - 85.934s = 4.326s
- obfuscated : 1m 27.75s - 83.392s = 4.358s
What do you think about it ?
Thank for your help.
Obelix
Edited by: obelix on Jul 29, 2008 3:02 PM
Maybe you are looking for
-
No "upload" folder in my Photo Stream on PC
I have no "upload" folder in my Photo Stream on PC. Saved a video to Photo Stream on PC but not uploading to view on iPhone. I have uninstalled iCloud on PC and reinstalled and the "Upload" folder (that I assume I need) doesn't appear. Any sugges
-
Iphone shows more photos in storage than in the photos app
I have an iPhone 6 with 33 photos locally saved and 0 videos. but when I look at my storage under the settings app it shows 2.3Gb of storage being used for photo library. when using my pc to look at the DCIM folder it shows only the 33 photos with a
-
Problem executing task in consolidation monitor
Hello I have a small issue i get the following error message when i try to test executing a task in cons monitor for load from data stream Task 001001 cannot be executed in period 001 Message no. UCS0150 Diagnosis No method with a period category con
-
Lightroom 5 - externer Editor: PS Elements 12
Hallo und frohe Weihnachten! Nachdem es zu Weihnachten einen neuen iMac gab, bin ich gerade dabei diesen einzurichten und bei der Zusammenarbeit von Adobe Lightroom 5 mit Photoshop Elements 12 auf Probleme gestoßen - hoffentlich könnt Ihr mir helfen.
-
Hi, Just got a MuVo TX FM a month back.Suddenly after a few days the backlight has stopped..i.e the LCD is not working. I wrote a mail to Support guys..they told me to update the firmware software..i did that but still the backlight is still not appe