Is anyone here familiar with BBEdit 9?


Recommended Posts

A while ago I made a topic about wanting to compile and run Java programs with a text editor. I was using TextMate for a while, but ending up switching to BBEdit. It does the job, but I can't figure out how to compile and run the Java programs I write. This is what I get:

post-119000-1258763868.png

I'm not sure what a "shebang" is.

http://en.wikipedia.org/wiki/Shebang_%28Unix%29

It looks like it's trying to invoke some kind of bash script which is lacking a line like

#!/bin/bash

or similar.

Hmm... All I'm testing is a basic Java program...

#!/bin/bash

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello World!");
	}
}

This will let me run the Terminal, but then I get this:

post-119000-1258764778_thumb.png

I don't think BBEdit will do a compile and run for Java. It just tries to run it like a shell script (and never compiling it), which is why it thinks it needs a shebang.

Edit: Found this: http://nanotux.com/blog/bbedit-java-compiler/. Might help.

Hmm... All I'm testing is a basic Java program...

#!/bin/bash

public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello World!");
	}
}

This will let me run the Terminal, but then I get this:

I've never seen a java program start with #!/bin/bash...... that's for bash scripts...

I've never seen a java program start with #!/bin/bash...... that's for bash scripts...

Yea, a Java program would never need the shebang. It's just that BBEdit's "Run" command just tries to run whatever you've made as a shell script and not use the specific method of whatever language you're writing in.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • 256 times the quality of an audio cd? I think audio cd's sound good so even twice as good as that would be something.
    • It’s not about the NOx. It’s about the electrical field.
    • FIFA cup is a worldwide event. Total global engagement — FIFA World Cup Qatar 2022 (official FIFA report) 5 billion people https://theworlddata.com/fifa-...-cup-viewership-statistics/ U.S., Canada, Japan drive vast World Series viewership for Games 1 and 2 In Japan despite a 9 a.m. local start time, Game One averaged 11.8 million viewers on NHK-G https://www.mlb.com/news/2025-...ching-large-global-audience There are also millions of annual viewers of the World Series in Latin America, especially Venezuela and the Domincan Republic due to the large number of players from those countries playing in the Major Leagues.
    • The original word arts were far more awesome! With their own preconfigured fill patterns, 3D layout, etc, with options to fine-tune their size and colors as desired. I especially loved the ones circled below and still miss them from my primary school years: I frankly use them less these days 'cause the new one isn't as straightforward fine art as what we originally had, taking time and effort to get back to the same graphics quality as the original offered, which I simply don't have enough of for merely fine-tuning my presentation titles. Same with the built-in picarts selection. Bring back the original pre-configured options for word art then I'll be using them far more frequently in my presentations even today.
    • What didn't you understand about that was mainly referring to Google, Microsoft, etc. keeping your passwords. Password Management is a key service of Bitwarden and it's not going anywhere. In any case they do offer export to other Password management services, backup/download of passwords, and the already mentioned on-prem option. I don't agree with the OP to use the free option as it's better to be an actual customer IMO. They don't just don't delete accounts like the big tech companies with no recourse which was the main concern of this article. I was confused if the author was trying to sell this setup? It should be obvious to anyone reading this article this solution is overly complicated and overkill for most users.
  • Recent Achievements

    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
    • Week One Done
      Genuinetonerink- Dubai earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      504
    2. 2
      +Edouard
      163
    3. 3
      PsYcHoKiLLa
      91
    4. 4
      Steven P.
      75
    5. 5
      Michael Scrip
      72
  • Tell a friend

    Love Neowin? Tell a friend!