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

    • This is listed as a preview in WU for me. I usually don't grab them as previews; what's your opinion on it so far?
    • Pale Moon 34.3.1 by Razvan Serea Pale Moon is an Open Source, Goanna-based web browser available for Microsoft Windows, Linux and Android, focusing on efficiency and ease of use. Make sure to get the most out of your browser! Pale Moon offers you a browsing experience in a browser completely built from its own, independently developed source that has been forked off from Firefox/Mozilla code, with carefully selected features and optimizations to improve the browsers speed, resource use, stability and user experience, while offering full customization and a growing collection of extensions and themes to make the browser truly your own. Features: Optimized for modern processors Based on proprietary optimized layout engine (Goanna) Safe: forked from mature Mozilla code and regularly updated Secure: Additional security features and security-aware development Supported by our user community, and fully non-profit Familiar, efficient, fully customizable interface Support for full themes: total freedom over any elements design Support for easily-created lightweight themes (skins) Smooth and speedy page drawing and script processing Increased stability: experience fewer browser crashes Support for many Firefox extensions Support for a growing number of Pale Moon exclusive extensions Extensive and growing support for HTML5 and CSS3 Many customization and configuration options Pale Moon 34.3.1 changelog: Pale Moon will now exclude local resources from CSP checks, aligning it with the rest of CSP handling. Fixed an issue where the devtools JSON viewer would, in some cases, make erroneous requests to remote servers. Updated libpng to 1.6.58+apng. Updated NSS to 3.90.12 (UXP), addressing multiple security issues. Fixed several intermittent and rare crashes. Security issues addressed: CVE-2026-12318 (CWE-125), CVE-2026-12322, CVE-2026-12292 (DiD), and multiple other issues that did not have a CVE designation at the time of patching. Download: Pale Moon (64-bit) | Portable 64-bit | ~40.0 MB (Freeware) Download: Pale Moon (32-bit) | Portable 32-bit Links: Pale Moon Homepage | Add-ons | Themes | Extensions | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Onwards to Windows 12 then lol.
  • Recent Achievements

    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
    • First Post
      Tom Schmidt earned a badge
      First Post
    • One Month Later
      D0nn13 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      424
    2. 2
      +Edouard
      177
    3. 3
      PsYcHoKiLLa
      124
    4. 4
      Michael Scrip
      77
    5. 5
      Xenon
      76
  • Tell a friend

    Love Neowin? Tell a friend!