Compiling iPhone apps from the command line
Hi guys,
Does anyone know how to
a) Compile and iPhone app.
b) Run an iPhone app.
using the command line? My concern is to have a command for each of these steps separately, rather than one for 'compiling and running'.
Thanks in advance.
For compiling, take a look at xcodebuild:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/xcodebui ld.1.html
Similar Messages
-
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. -
Can't send files to Trash from the command line
Hello,
as I'm programming in JAVA I must do all "special" operations as from the command line.
I found several solutions but they don't work for me, at least not in Mavericks.
I tried:
osascript -e "tell app \"Finder\" to delete POSIX file \"/Users/me/totrash\""
I got:
21:60: execution error: Finder got an error: Handler can’t handle objects of this class. (-10010)
I tried:
echo "tell application \"Finder\" move POSIX file \"/Users/me/totrash\" to trash end tell | osascript
I got:
26:30: syntax error: Expected end of line but found command name. (-2741)
Is there any working AppleScript way to send a file to the Trash Bin?
Thanks in advance.
;JOOP!Near ....... I did not misspell 'me', I was in a different directory after all my experimenting .....
Curse those who write cryptic error messages ...
Bless those who still get it.
So, thanks.
;JOOP! -
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 -
Starting the 10G server from the command line
How do I start the 10G APP SERVER FROM THE COMMAND LINE?
http://download-west.oracle.com/docs/cd/B10464_01/core.904/b10376/start.htm#1007557
Documentation library for Application Server 10g. It has a section on starting/stopping -
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). -
Is it possible to script Firefox to do things from the command line?
Specifically, I am attempting to print a web page at a specific url from the command line.
Thanks for the quick reply. I had already seen the page you linked to, but it doesn't have any commands to print a web page. Should I interpret from that absence that there isn't a way to print from Firefox from the command line?
-
Is there a way to switch between workspaces in Spaces from the comnand line? I use several workspaces from Spaces, each workspace having a certain number of fixed applications running. Rather than set all this up each time I log on, I'd like to write a script from the command line (I use gawk) to automate this. Currently I have a gawk script that, given a directory, opens a few xterms whose working directory is the given directory, and opens "preview" applied to a certain file in that directory. However, at present I have to manually move an xterm through each workspace and run my gawk script in each workspace (applied to each directory that I'm working on).
There must be a better way...Addendum: Can this be done via: open -a Spaces --args xxx , where xxx is some set of arguments (or something like this)?
-
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 -
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... -
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 -
How can I print the test page with the Arabic type from the command line
Hi,
I have been trying to make the tool for printing the test page from the command line on the Arabic OS. I used "rundll32 printui dll printuientry" with "/k /n" options. My tool is to print the test page in all OS when pushing the
button.
Normally, in the Arabic Windows, the test page is printed with RTL type when printing the test page in the "Devices and Printers". But in my tool, the test page is printed with LTR type. I'm confused because of this result.
Is it possilbe to print the test page with RTL type when using the "rundll32 printui dll printuientry"? If it is possible, could anyone give me the hint or information for resolving?
Please check for me.Hello,
Thank you for your post.
Your issue is out of support range of Test Tools in Visual Studio 2010 and 2012 forum which discusses Visual Studio Test issues.
I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How I can set my default browser mozilla firefox from the command line in Windows 7?
I need to set my default browser mozilla firefox from the command line, ie without using the GUI.
'''-setDefaultBrowser''' is the correct command - you need the two capital letters.
Why Firefox 17.0.1? You would be missing a number of important security updates. Firefox 17.0.'''9''' is the current ESR release version. -
Problem - reading an abitrary string from the command line in basic swing
Hi,
I'm sorry if this problem is a bit basic, but I've only just started swing in Java. Anyway, I'm trying to adapt a basic swing version of the HelloWorld class. When I try to pass an abitrary string from the command line to the label within the class, I get the following error,
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at week2.HelloWorldSwing_commandline.main(HelloWorldSwing_commandline.java:31)
Java Result: 1I must be missing something because I can't see where the problem is in the following code.
import javax.swing.*;
import java.awt.*;
public class HelloWorldSwing_commandline {
String message;
private static void createAndShowGui(String message){
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame("HelloWorldSwing");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label = new JLabel(message);
Container content = frame.getContentPane();
content.add(label);
frame.pack();
frame.setVisible(true);
public static void main(String[ ] args) {
createAndShowGui(args[1]);
}Any help would really be appreciated.Hi,
I've tried changing the index value to O in the main method, but I still get the same error.
I'm running this in NetBeans 4.1, and when I try to run the class I get the error as listed above.
Any ideas how to correct this error?
Thanks -
How to burn CD's from the command line in 2009?
I've always managed to burn CDs and DVDs from the command line but I haven't done it in a long time. cdrecord wasn't working as root and I noticed it was just a symlink pointing to wodim.
I tried the following command as root in a directory with some wav files:
# cdrecord -dev=/dev/sr0 -driveropts=burnfree -audio -pad *.wav
Which gives me:
Mar 6 08:43:18 wilco ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Mar 6 08:43:18 wilco ata7.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
Mar 6 08:43:18 wilco cdb 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Mar 6 08:43:18 wilco res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
Mar 6 08:43:18 wilco ata7.00: status: { DRDY }
Mar 6 08:43:18 wilco ata7: hard resetting link
Mar 6 08:43:19 wilco ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Mar 6 08:43:19 wilco ata7.00: configured for UDMA/100
Mar 6 08:43:19 wilco ata7: EH complete
This worked for me in 2008, so has anything big changed?Rasi wrote:
Wilco wrote:
Dieter@be wrote:I did not follow the discussion, but I just use wodim as specified on http://wiki.archlinux.org/index.php/CD_Burning_Tips, and that works great for me.
Hmm strange, I tried the same command as in my first post and it works fine with the real cdrtools but not with wodim (I also tried k3b and that failed too). So I just stick with cdrtools
Hooray, one more convert
I haven't really followed the discussion either but why choose an "emulated cdrecord" that doesn't work instead of the real program that works great?
Maybe you are looking for
-
If I want to select the whole field I am happy to double click, or tab into the field. More often though I want to refine my search, or correct a spelling mistake.
-
JRE Crash with 1.5.0_13 related to printing & PDF export
Hi, I'm having a problem : JRE 1.5.0 (updates 6, 10 and 13 tried) crashes under my software. The problem is encountered with printing / PDF exporting functionality through JFreeReport. Issue is encountered only with dualcore computers. Fortunately th
-
How can I ask for things to add in the next ios update
There are a few things I would like on my ipod touch as ios accesories. So how do ask for these things?
-
I have downloaded music videos on my ipad2 they play on it. But they will not play in iTunes on my Mac or pc. The first 10 seconds or so plays, but then video goes black and the bar keeps moving?
-
Error in inserting images into table
Hi All, I am trying to insert images into a table. Followed these steps: CREATE TABLE XX_DEMO_IMG_TBL file_id NUMBER(5), file_name VARCHAR2(30), file_data BLOB LOAD DATA INFILE * REPLACE INTO TABLE XX_DEMO_IMG_TBL FIELDS TERMINATED BY