Assembler.sh doesn't seem to generate output on the command line

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Assembler.sh doesn't seem to generate output on the command line

tansaku
I'm running commands like:

Assembler.sh ../projects/06/max/MaxL.asm

however no hack file is generated.  The hack file is generated fine when I use the GUI, but can't seem to get it to work from the command line. I'm on OSX 10.8.5 and java version "1.7.0_12-ea".

Has anyone else had this trouble?

Many thanks in advance
Sam Joseph, Ph.D.
Associate Professor
Department of Computer Science
Hawaii Pacific University
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Assembler.sh doesn't seem to generate output on the command line

baum_j
(1)Maybe it doesn't run at all - maybe it's not "privileged" as an executable?
Try "chmod +x Assembler.sh" to give it execution privileges.

(2)
Maybe the Java run-time is not properly defined in the environment (in the shell).
Try "java -version", just to see that java is on the execution path.
It should print something in the lines of:
   java version "1.7.0_51"
   Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
   Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

Sorry if these are unhelpful (and trivial) but just maybe you missed those.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Assembler.sh doesn't seem to generate output on the command line

tansaku
thanks for replying

[sam@SamHPUMBP:~/Desktop/nand2tetris/projects/07 ]$ java -version
java version "1.7.0_12-ea"
Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b08)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b28, mixed mode)

[sam@SamHPUMBP:~/Desktop/nand2tetris/tools ]$ ls -la
total 112
drwxr-xr-x@ 19 sam  staff   646  3 Mar 12:06 .
drwxr-xr-x@  5 sam  staff   170  7 Jan 11:25 ..
-rw-r--r--@  1 sam  staff  6148  7 Jan 12:17 .DS_Store
-rw-r--r--   1 sam  staff   272  3 Mar 12:20 .hack
-rwxr-xr-x@  1 sam  staff   196 26 Dec  2005 Assembler.bat
-rwxr-xr-x@  1 sam  staff   201  3 Mar 12:06 Assembler.sh
-rwxr-xr-x@  1 sam  staff   191 26 Dec  2005 CPUEmulator.bat


looks like those two aren't the issue ...
Sam Joseph, Ph.D.
Associate Professor
Department of Computer Science
Hawaii Pacific University
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Assembler.sh doesn't seem to generate output on the command line

linse
I don't think assembler.sh is a command line program. You need to launch it in its own window, e.g.,
sh assembler.sh &

But I'm not completely sure.
Loading...