Getting SimpleChat.mxml example running in the command-line
Hi,
I am working on getting a connection to cocomo working. Unfortunately, the documentation is highly unclear about how to get this running from the command-line(not to mention the example file in flash builder 4 crashes when run...).
Directly run, this is the error I'm getting:
$ /Developer/flex_sdk_4/bin/mxmlc cocomo_load.mxml
Loading configuration file /Developer/flex_sdk_4/frameworks/flex-config.xml
/Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(72): Error: Could not resolve to a component implementation.
/Users/vlion/Documents/work/flixn/repos/vss/sandbox/cocomo_load.mxml(84): Error: Could not resolve to a component implementation.
When adding --show-actionscript-warnings=true --strict=true, I get the same warning.
I have afcs.swc in the directory I'm running this from.
However, when run with --library-path=., I receive a slew of "could not find resource bundle for local en_US" warnings. Setting the local to en_US doesn't help the matter.
Reviewing the discussions I found online, this appears to be related to namespace issues. However, it is unclear what the namespace issue is.
What, exactly, is the problem, and what needs to be set to resolve it?
Message was edited by: pnathan_: added filename and some readability formatting.
Hi,
Thanks for bringing this in notice to us. Since we were not building the examples in command-line with flex 4, we didn’t see this problem earlier.
The problem happened because our LCCS components were built with halo component and namespace in flex 3. So, when you are using the spark framework and flex 4, if you do not mention that you also need the halo theme , our components won't work. Flex Builder takes care for it but while doing command-line compiling you need to mention the theme specifically. If you run your current script with Flex 3 sdks, it would have built fine. This has nothing to do with our namespaces or using locale.
I am attaching a quick ant build script which I used to build our DefaultPods example with Flex 4 sdks( this script file is in same folder as DefaultPods.mxml).
You can see the build script and make any changes ( since I used for windows) and let us know if everything works fine for you.
Thanks again for bringing it to our notice. We will make sure that this gets added to the docs in next-release.
Thanks
Regards
Hironmay Basu
Here is the Ant Script
<property name="cocomoSDK.dir" value="$/../../../cocomo" />
<property name="FlexSDK.dir" location="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0" />
<property name="mxmlc.jar" location="${FlexSDK.dir}/lib/mxmlc.jar" />
<property name="cocomo.lib.dir" location="$/../../../cocomo/lib/" />
<!launcher>
<arg value="-output=$/DefaultPods.swf" />
<arg value="-file-specs=$/DefaultPods.mxml" />
</java>
</target>
</project
Similar Messages
-
Jar file runs from the command line, but not when I double click it
Hello, I'm running windows xp. I've created an executable jar file and it runs fine from the command line when I type;
java -jar wizard.jar
but, when I double click it . . . nothing.
Any ideas?nothing ? that's weird, windows XP should prompt you to select the program you want to use in order to open Jar files (and give you this silly piece of advice to search the web for the appropriate program)
you might want to check what program (if any) got associated with .jar extensions :
in Windows Explorer : Tools => Folder Options => File Types
hth -
Hi
I’m upgrading our SSIS packages from SQL 2005 to SQL 2012 .
Everything is working fine in Visual Studio, but when I’m submitting dtexec.exe it’s finishing right away in the command line (the actual execution takes long time).
It looks to me that as the return code doesn’t pass properly.
As I have depending tasks how I can make sure all jobs will be executed in the proper order.
(We never had this issue in SQL 2005)
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn>dtexec.exe /ISSERVER "\"\SSISDB\Direct_Prod\Direct_SSIS_Package
\DD_Load_Customer.dtsx\"" /SERVER TORSQLSIS01 /ENVREFERENCE 2
Microsoft (R) SQL Server Execute Package Utility
Version 11.0.2100.60 for 32-bit
Copyright (C) Microsoft Corporation. All rights reserved.
Started: 10:21:55 AM
Execution ID: 21138.
To view the details for the execution, right-click on the Integration Services Catalog, and open the [All Executions] report
Started: 10:21:55 AM
Finished: 10:21:56 AM
Elapsed: 0.766 secondsAs per MSDN /ENVREFERENCE argument is used only by SQL Server Agent
see
https://msdn.microsoft.com/en-us/library/hh231187.aspx
below part is what it says
/Env[Reference] environment reference ID
(Optional). Specifies the environment reference (ID) that is used by the package execution, for a package that is deployed to the Integration Services server. The parameters configured to bind
to variables will use the values of the variables that are contained in the environment.
You use /Env[Reference] option together with the /ISServer and the /Server options.
This parameter is used by SQL Server Agent.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Error while running the Discoverer report from the command line.
Hi All,
I've to run a discoverer report from command line and export the results in xls/html on to my local machine. This report I've to run it as batch and scheduled it.
I have a parameterized worksheet and this has to be run from command line specifying the parameter value I wanted to run the report for. I do not get any results. Here is the command line I am using.
dis51usr /connect user/password@database /opendb "TIMS-PCJ status Report" /sheet "TIMS observation status report (based on performed date)" /parameter "Test Number" '40351' /parameter "From Date" '05-MAY-2008' /parameter "To Date" '06-MAY-2008' /export HTML "C:\DISCOVERER_REPORT_SCHEDULING\DIS_OUTPUT\PCJStOutputinHTML123"
I even added the TO_DATE conversion for the parameters and also gave the format of the date as 'DD_MON_YYYY'.
Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
Please anyone reply me.
Regards & Thanks,
P. Gayathri DeviHi Gayathri,
Try changing your parameter names to be a single word. (Change "Test Number" to Test_Number).
Does the report run fine when run through Desktop for the same parameter values? Which version of Discoverer are you using?
Thanks. -
Running Jar vs. command line with libraries
Hi everybody,
I have an application that works well from the command line, which relies on 3 libraries, all of which are in the same directory. My current directory structure is like this:
Main Folder
-> Library 1
-> Library 2
-> Library 3
-> Run script
-> Source Folder ("source")
->-> Code and main class
Library 1 depends on both Library 2 and Library 3. When I run from the command line, from the main folder, using this command:
java -Djava.library.path=. source/MainClass
My program runs fine.
The problem comes when I try to package it into a Jar and replicate the directory structure.
My manifest is:
Manifest-Version: 1.0
Main-Class: source.MainClass
<newline>
and my jar command is:
jar cvmf Manifest.txt test.jar source/*.class
When I try to run my jar, I get this error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/MainDirectory/Library1.so: Library2.so: cannot open shared object file: No such file or directory
I know what this means-- for some reason it doesn't know where Library2 is-- but I'm mystified as to why this works fine from the command line and not from a jar. Can anyone help me figure this out, please?
Thanks,
Jezzica85warnerja wrote:
Wrong question. You still want to run it via java -jar, but...
Your jar needs a MANIFEST.MF (if I recall correctly, that is the right file name) in its META-INF folder (again, if I recall correctly) which needs to set up the classpath via a Class-Path=... line in the file.
Actually you probably already do have such a file (you need it anyway for the jar to figure out what the main class is to execute), but it probably doesn't contain a Class-Path entry or is incorrect.
Google for jar manifestI've had less than stellar success on correcting the big boys lately, but why should I let that stop me...
As far as I can tell, the OP seems to be having problems with native link libraries. Some java class loads Library1 then (it appears) Library1 attempts to load Library2.
Would fixing a CLASSPATH help that?
I would expect it to be a problem with LD_LIBRARY_PATH (ala Sabre's earlier reply). -
Dumb question- how do I get to the command line without X running?
Hi,
As per the title please... I need to rerun Xorg -configure, but cannot for the life of me figure out how to shut down X and get to a command line
ThanksBes wrote:
Ctl alt and backspace just takes me out to the login screen.. from there I can't get to the terminal without X running.
Ctrl Alt F5 gets me to the command line, but I can't kill the X server
Thanks though
so with ctrl+alt+f5 you're at the console
log in if you need to, then
ps ax | grep gdm
4441 ? Ss 0:00 /usr/sbin/gdm-binary
4442 ? S 0:00 /usr/sbin/gdm-binary
4444 tty7 SLs+ 3:38 /usr/bin/Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth
6633 pts/0 S+ 0:00 grep gdm
kill 4444
the above example assumes gdm is your login manager so substitute whatever you're using, and you can kill the other instances of gdm (in my example processes 4441 and 4442 but don't waste your time on the grep process 6633
now redo your X config
(actually you could run this from a terminal from within X and it should have the same effect of dropping you back to console
Last edited by tj (2008-04-20 09:36:15) -
Error while running aiaconfig.sh - The command line argument(s) "weblogicConfig"
Hi.
We are Configuring PIP on AIA 11.1.1.7 after installing AIA PIP release. we we run ./aiaconfig.sh we are getting below error message,
$./aiaconfig.sh
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 169130 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-11-20_04-11-10AM. Please wait ...adevaia @soa-odi-dev1:/u02/app/Oracle/Middleware/AIAHOME/bin$ [WARN ][jrockit] MaxPermSize=256m ignored: Not a valid opt ion for JRockit
Log: /u01/app/oraInventory/logs/install2013-11-20_04-11-10AM.log
The command line argument(s) "weblogicConfig" or the install mode specified is not valid.
Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
Usage:
config.sh [-mode] [-options] [(<CommandLineVariable=Value>)*]
Where mode include:
[Mode is a mandatory parameter. Only one mode can be specified.]
-silent For silent mode operations, the inputs can be a response file or a list of
command line variable value pairs.
Where options include:
-help, --help, --usage
Displays above usage.
-invPtrLoc <inventory pointer file>
Launches the installer with a custom inventory location. The invPtrLoc
should point to a file which contains the following information.
inventory_loc=<inventory_location>
inst_group=<group_name>
-response, -responseFile <response file>
Specifies the response file and path to use.
-jreLoc <location>
Path where Java Runtime Environment is installed. OUI cannot be run without
it.
-logLevel <level>
To filter log messages that have a lesser priority level than <level>.
Valid options are: severe, warning, info, config, fine, finer, finest,
basic, general, detailed, trace. The use of basic, general, detailed, trace
is deprecated.
-debug For getting the debug information from OUI.
-force Allowing silent mode installation into a non-empty directory.
-printdiskusage
Log debug information for disk usage.
-printmemory
Path where Java Runtime Environment is installed. OUI cannot be run without
it.
-printtime
Log debug information for time usage.
-waitforcompletion
For windows. setup.exe will wait for completion instead of spawning the
java engine and exiting.
-noconsole
For suppressing display of messages to console. Console is not allocated.
-ignoreSysPrereqs
For ignoring the results of the system pre-requisite checks.
-executeSysPrereqs
Execute system pre-requisite checks and exit.
-paramFile <location of file>
Specify location of oraparam.ini file to be used by OUI.
-novalidation
Disables the validations, can be invoked along with GUI or silent mode.
-nodefaultinput
Disables the default computation of values (pre-populating of values when
screen is loaded) in GUI install.
-nocheckForUpdates
To disable all updates checking
-updatesDir
To specify the directory where latest updates are downloaded. This could be
used in disconnected mode.
Command Line Variables Usage:
Command line variables are specified using <name=value>; for example:
[ session: | session:compName: | session:compName:version: ]variableName=" valueOfVariable"]
Installer variables are specified using:
varName=value
Ex: ORACLE_HOME=<value>
OUI Session variables are specified using:
session:varName=value
Ex: session:VARIABLE_NAME=<value>
OUI Component variables are specified using:
session:compInternalName:[Version:]varName
Ex 1: session:oracle.comp1:1.0.1:varName=<value>
Ex 2: session:oracle.comp1:varName=<value>
The lookup order is compInternalName:Version:varName, then compInternalName:varName
do anyone had any idea on this.
Thanks a lot,
RR.try checking relevant environment variables like the CLASSPATH.... a major source of failures in Windows is when in the classpath there is a path containing SPACES.... also enabling some "debug" or "verbose" flag (not sure how to do it) would provide more insight...
-
Help required - running a Java program from the command line
Hi,
I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
Both the application jar file and the external jar file are in my root directory (C:\).
My command line call is as follows:
java -cp c:MyExternalLib.jar -jar MyApp.jar
Any help greatly appreciated.
Thanks,
Walterhi,
set classpath=%classpath%;c:\myjar.jar;
here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
java mypgm
this will solve ur problem
regards,
Ganesh -
Running a function from a powershell script from the command line
Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
so far, if i change directory to that of the script i can call the function by doing this:
cd c:\myscripts
. .\mytestscript.ps1; myfunction
this works fine.... i have also tried, what I would like to achieve is calling it like this
c:\myscripts\mytestscript.ps1; myfunction
however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
how can i adapt my command line so that it will successfully call the function within my script?
thanks
SteveRename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
Placement of the psm1 file is important for Powershell to find and autoload it.
The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
user\documents\windowspowershell\modules\mymodule
Windows PowerShell Modules
http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
PS C:\> get-childItem env:PSModulePath
Name Value
PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ -
Get the absolute path and filename of the file from the command line
Hi,
when we run the class we give the command
java <filename>
How can I capture the filename given above and get its absolute path inside the
public static void main(String [] args){}
args[0] gives me the command line argument after the filename. How do I capture the filename itself from the command line argument and also get that files absolute path
ThanksI don't know of any way to capture the java command input, but there are ways to find out where the application is being run from. (the "absolute path")
http://forum.java.sun.com/thread.jsp?forum=31&thread=335394 -
Run javascript (not in a jsx file) from the command line extendscript
Hi all,
I was wondering if anyone knew how to run javascript from the command line in Extendscript (meaning Extendscript would be the target application). I know about the -run command line flag in which allows you to run a .jsx script from the command line but what I'm looking for similar syntax to run a script directly without needing to put it in a file. For example I have tried (obviously unsuccessfully):
C:\Program Files (x86)\Adobe\Adobe ExtendScript Toolkit CC\ExtendScript Toolkit.exe -run "alert('Hello World');"
Thanks!You might be looking for something like this: javascript - Is it possible to execute JSX scripts from outside ExtendScript? - Stack Overflow
Although that one is about executing JSX files, the solutions given (Applescript as well as COM/VBScript) can be adapted to simply run a javascript code snippet rather than JSX file because the solutions simply call the Adobe app's Applescript/COM API to "execute javascript" (actually execute ExtendScript technically), and in the solution, they using includes to pull in the JSX file. You'd simply replace the include with actual javascript code snippet inserted in.
Though this would then require you to run a VBScript, Applescript, or other script (that calls the COM/Applescript API) rather than the ESTK command line option. -
Get GPS location from the command line
Is there a utility to get the current GPS location from the command line? A quick search says `geo` will do it, but that appears to come with the android dev tools, which I'd rather not install right now. The reason I want to do this is to avoid hard-coding my coordinates in a call to `redshift`.
enduser wrote:
Hmm.. `gpspipe` gives me:
gpspipe: could not connect to gpsd localhost:2947, Unknown error -6(-6)
And `gpsd` gives me:
gpsd:ERROR: can't run with neither control socket nor devices
Do I need to be root for these applications? Alternatively, could I maybe just grab the timezone from /etc/localtime and use that? (though I guess that doesn't get close enough on longitude...)
You have to start gpsd from systemctl. And you can plug/unplug gps devices at will, so it can be enabled in systemctl whether or not an actual gps is always available. -
Running a jar from the command line
I am trying to run a Jar from the command line. I have a number of classes in a package called "trainnn".
I put all the classes into a jar
jar cvf name.jar trainnn\*.classI then creat a file called mainClass.txt with the line (with a blank return line after it, where QueryMatch has the main). This file was placed in the same directory as the package and the jar file
Main-Class: QueryMatch
then
jar cmf mainClass.txt network.jar G:/TrainNN/src/trainnn/QueryMatch.classthis worked fine.....but it is from here I have problems when I try run the jar
java -jar network.jarbut get this error.
Exception in thread "main" java.lang.NoClassDefFoundError: QueryMatch
I cant figure out this error, I have tried specifying the exact path in the mainClass.txt file but that didnt work.
Any ideas
Thanks in advance.Hi,
To start a java app in the command line with "java -jar yourJarFile.jar", the jar needs to have a mainfest file "MANIFEST.MF" in a folder called "META-INF". The manifest file would have to contain the name of your starting class, e.g. it could look like thisManifest-Version: 1.0
Main-Class: com.yourCompany.yourProject.YourClass Hope that helps. Cheers, HJK -
Running powewrpc programs from the command line
I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
cannot execute binary file
I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
How do I get the application to execute? (it runs fine from the desktop).I am sitting at a Sun Solaris machine (it runs X11R6
and Matif). I want to run Quicken, which is on the
mac mini. I log into the mac with ssh -X. I find the
Quicken program, but the permissions are set to 644
(read, but not execute). If I change the permissions
and try to run the program I get teh error message
"cannot execute binary file".
The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
I have no idea what VNC is. If this is how I can do
this, then please provide me a link to it.
VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones). -
Problem with running a java program from the command line
I have this code:
package pkg;
import jxl.*;
import java.io.File;
public class TestClass {
public static void main(String[] args) {
try{
Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
Sheet sheet = book.getSheet(0);
String s=sheet.getCell(4, 2).getContents();
System.out.println(s);
}catch (Exception e){System.err.println(e);}
}I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
Then I tried to run it from the command line and I did it like this:
D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
Caused by: java.lang.ClassNotFoundException: pkg.TestClass
...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
So, my question is: How to run this code from the command line?
I have no idea what went wrong.
Can someone help me, please?The current directory is not implied in the classpath.
D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...
Maybe you are looking for
-
Someone put a password on my brand new ipod touch
I do not know password and it is disabled. How do I enable it with out having to put the unknown password in? Please help me this is the first time I have ever had an I Pod in my life!!
-
RED Footage has strange banding with H.264 export
Exporting RED footage to H.264 (just as review files) from Media Encoder CC 2014 and it has some strange horizontal banding going on. Never happened with CC. Anyone know what this is??
-
I ordered a case for my iPad mini retina display and I doesn't fit
I ordered a case I really liked and it doesn't fit? Why is that and where app an I get a new one?
-
I am using Captivate 4 on a computer running Windows XP. My projects begin as blanks in a 640x480 size. In the Skin Editor, I select "Show Borders" so that a black border (56 pixels) appears at the bottom of my project. When I preview it in the web b
-
Hi All, Problem related to transaction FAGLL03
Hi All I am using transaction FAGLL03 but when i am executing this transaction quantity field is not getting populated. There is a FETCH command in FM FAGL_GET_ITEMS_BSIS which retrieves data from the following 2 tables : BSIS FAGLFLEXA (This table